box-annotations 5.3.1-beta.0 → 5.3.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotations.css +1 -1
- package/dist/annotations.js +1 -1
- package/i18n/bn-IN.js +24 -23
- package/i18n/da-DK.js +24 -23
- package/i18n/de-DE.js +24 -23
- package/i18n/en-AU.js +4 -23
- package/i18n/en-CA.js +2 -24
- package/i18n/en-GB.js +4 -23
- package/i18n/en-US.js +4 -24
- package/i18n/en-x-pseudo.js +6 -0
- package/i18n/es-419.js +24 -23
- package/i18n/es-ES.js +24 -23
- package/i18n/fi-FI.js +24 -23
- package/i18n/fr-CA.js +24 -23
- package/i18n/fr-FR.js +24 -23
- package/i18n/hi-IN.js +24 -23
- package/i18n/it-IT.js +24 -23
- package/i18n/ja-JP.js +24 -23
- package/i18n/ko-KR.js +24 -23
- package/i18n/nb-NO.js +24 -23
- package/i18n/nl-NL.js +24 -23
- package/i18n/pl-PL.js +24 -23
- package/i18n/pt-BR.js +24 -23
- package/i18n/ru-RU.js +24 -23
- package/i18n/sv-SE.js +24 -23
- package/i18n/tr-TR.js +24 -23
- package/i18n/zh-CN.js +24 -23
- package/i18n/zh-TW.js +24 -23
- package/package.json +8 -8
- package/src/api/types.ts +5 -0
- package/src/common/BaseAnnotator.ts +9 -0
- package/src/common/EventEmitter.ts +11 -3
- package/src/components/Popups/PopupV2.tsx +32 -1
- package/src/components/ReplyForm/ReplyFormContainer.tsx +7 -4
- package/src/document/DocumentAnnotator.ts +28 -11
- package/src/document/docUtil.ts +5 -1
- package/src/popup/PopupLayer.tsx +6 -1
- package/src/region/RegionCreation.tsx +4 -3
- package/src/region/RegionCreationContainer.tsx +3 -0
- package/src/store/annotations/actions.ts +32 -6
- package/src/store/annotations/reducer.ts +2 -0
- package/src/store/options/selectors.ts +5 -0
- package/i18n/bn-IN.properties +0 -44
- package/i18n/da-DK.properties +0 -44
- package/i18n/de-DE.properties +0 -44
- package/i18n/en-AU.properties +0 -44
- package/i18n/en-CA.properties +0 -44
- package/i18n/en-GB.properties +0 -44
- package/i18n/en-US.properties +0 -44
- package/i18n/en-x-pseudo.properties +0 -32
- package/i18n/es-419.properties +0 -44
- package/i18n/es-ES.properties +0 -44
- package/i18n/fi-FI.properties +0 -44
- package/i18n/fr-CA.properties +0 -44
- package/i18n/fr-FR.properties +0 -44
- package/i18n/hi-IN.properties +0 -44
- package/i18n/it-IT.properties +0 -44
- package/i18n/ja-JP.properties +0 -44
- package/i18n/json/src/components/BoundingBoxHighlight/messages.json +0 -1
- package/i18n/json/src/components/Popups/messages.json +0 -1
- package/i18n/json/src/messages.json +0 -1
- package/i18n/ko-KR.properties +0 -44
- package/i18n/nb-NO.properties +0 -44
- package/i18n/nl-NL.properties +0 -44
- package/i18n/pl-PL.properties +0 -44
- package/i18n/pt-BR.properties +0 -44
- package/i18n/ru-RU.properties +0 -44
- package/i18n/sv-SE.properties +0 -44
- package/i18n/tr-TR.properties +0 -44
- package/i18n/zh-CN.properties +0 -44
- package/i18n/zh-TW.properties +0 -44
package/dist/annotations.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see annotations.js.LICENSE.txt */
|
|
2
|
-
import{BlueprintModernizationProvider as e,TooltipProvider as t}from"@box/blueprint-web";import{MentionContextProvider as r,MessageEditorV2 as n,ThreadedAnnotationsV2 as o,parseMessageMarkdown as i,serializeMentionMarkup as a,serializeMessageToMarkdown as s}from"@box/threaded-annotations";var c={617(e,t,r){var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=r(9030);function i(e,t){if(!(e instanceof a))throw new TypeError("Method Intl.PluralRules.prototype."+t+" called on incompatible receiver "+String(e))}var a=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");var n=o.getCanonicalLocales(t),i=Object.create(null),a=void 0===r?Object.create(null):o.toObject(r);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedPluralRules",!0);var s=o.getOption(a,"localeMatcher","string",["best fit","lookup"],"best fit");i.localeMatcher=s,o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type",o.getOption(a,"type","string",["cardinal","ordinal"],"cardinal")),o.setNumberFormatDigitOptions(e.__INTERNAL_SLOT_MAP__,this,a,0,3);var c=o.createResolveLocale(e.getDefaultLocale)(e.availableLocales,n,i,e.relevantExtensionKeys,e.localeData);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",c.locale)}return e.prototype.resolvedOptions=function(){var t=this;i(this,"resolvedOptions");var r=Object.create(null);return r.locale=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),r.type=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type"),["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(n){var i=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,t,n);void 0!==i&&(r[n]=i)}),r.pluralCategories=n(e.localeData[r.locale].categories[r.type]),r},e.prototype.select=function(t){i(this,"select");var r=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),n=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type");return e.localeData[r].fn(function(e,t,r){var n=o.getInternalSlot(e,t,"minimumSignificantDigits"),i=o.getInternalSlot(e,t,"maximumSignificantDigits");return void 0!==n&&void 0!==i?function(e,t,r){var n=e.toPrecision(r);if(~n.indexOf(".")&&r>t){for(var o=r-t;o>0&&"0"===n[n.length-1];)n=n.slice(0,n.length-1),o--;if("."===n[n.length-1])return n.slice(0,n.length-1)}return n}(r,n,i):function(e,t,r,n){for(var o=n-r,i=e.toFixed(n);o>0&&"0"===i[i.length-1];)i=i.slice(0,i.length-1),o--;"."===i[i.length-1]&&(i=i.slice(0,i.length-1));var a=i.split(".")[0].length;if(a<t){for(var s="";s.length<t-a;s+="0");i=s+i}return i}(r,o.getInternalSlot(e,t,"minimumIntegerDigits"),o.getInternalSlot(e,t,"minimumFractionDigits"),o.getInternalSlot(e,t,"maximumFractionDigits"))}(e.__INTERNAL_SLOT_MAP__,this,Math.abs(Number(t))),"ordinal"==n)},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return o.supportedLocales(e.availableLocales,o.getCanonicalLocales(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i=function(t){var r=Object.keys(n(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{}));r.forEach(function(r){try{e.localeData[r]=o.unpackData(r,t)}catch(e){if(o.isMissingLocaleDataError(e))return;throw e}})},a=0,s=t;a<s.length;a++)i(s[a]);e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=[],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.PluralRules=a;try{Object.defineProperty(a,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},8139(){Intl.PluralRules&&"function"==typeof Intl.PluralRules.__addLocaleData&&Intl.PluralRules.__addLocaleData({data:{en:{categories:{cardinal:["one","other"],ordinal:["one","two","few","other"]},fn:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),a=o&&r[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&n?"one":"other"}}},aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"},availableLocales:["en"]})},1761(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(617);(void 0===Intl.PluralRules||!Intl.PluralRules.polyfilled&&"one"===new Intl.PluralRules("en",{minimumFractionDigits:2}).select(1))&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},1624(e,t,r){r(1761)},6190(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var s=r(9030),c=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function u(e){return e+""}function l(e,t,r,n){if(s.invariant("number"==typeof r,"value must be number, instead got "+typeof r,TypeError),s.invariant("string"==typeof n,"unit must be number, instead got "+typeof r,TypeError),isNaN(r)||r===1/0||r===-1/0)throw new RangeError("Invalid value "+r);var i=function(e){if(s.invariant("string"==typeof e,"unit must be a string, instead got "+typeof e,TypeError),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw new RangeError("Invalid unit "+e);return e}(n),a=s.getInternalSlot(e,t,"fields"),c=s.getInternalSlot(e,t,"style"),l=i;"short"===c?l=n+"-short":"narrow"===c&&(l=n+"-narrow"),l in a||(l=n);var d=a[l];if("auto"===s.getInternalSlot(e,t,"numeric")&&u(r)in d)return[{type:"literal",value:d[u(r)]}];var f="future";(function(e){return Object.is?Object.is(e,-0):-0===e?0!==e||1/e==-1/0:e!=e&&!1}(r)||r<0)&&(f="past");var p=d[f],h=s.getInternalSlot(e,t,"pluralRules"),g=s.getInternalSlot(e,t,"numberFormat"),y="function"==typeof g.formatToParts?g.formatToParts(Math.abs(r)):[{type:"literal",value:g.format(Math.abs(r)),unit:n}];return function(e,t,r){var n,i,a,c,u=s.partitionPattern(e),l=[];try{for(var d=o(u),f=d.next();!f.done;f=d.next()){var p=f.value;if(s.isLiteralPart(p))l.push({type:"literal",value:p.value});else{s.invariant("0"===p.type,"Malformed pattern "+e);try{for(var h=(a=void 0,o(r)),g=h.next();!g.done;g=h.next()){var y=g.value;l.push({type:y.type,value:y.value,unit:t})}}catch(e){a={error:e}}finally{try{g&&!g.done&&(c=h.return)&&c.call(h)}finally{if(a)throw a.error}}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return l}(p[h.select(r)],i,y)}var d=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat",!0);var n=s.getCanonicalLocales(t),o=Object.create(null),i=void 0===r?Object.create(null):s.toObject(r),a=s.getOption(i,"localeMatcher","string",["best fit","lookup"],"best fit");o.localeMatcher=a;var u=s.getOption(i,"numberingSystem","string",void 0,void 0);if(void 0!==u&&!c.test(u))throw new RangeError("Invalid numbering system "+u);o.nu=u;var l=s.createResolveLocale(e.getDefaultLocale)(e.availableLocales,n,o,e.relevantExtensionKeys,e.localeData),d=l.locale,f=l.nu;s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",d),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style",s.getOption(i,"style","string",["long","narrow","short"],"long")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric",s.getOption(i,"numeric","string",["always","auto"],"always")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"fields",e.localeData[d]),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberFormat",new Intl.NumberFormat(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"pluralRules",new Intl.PluralRules(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem",f)}return e.prototype.format=function(t,r){if("object"!=typeof this)throw new TypeError("format was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("format was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(r)).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(t,r){if("object"!=typeof this)throw new TypeError("formatToParts was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("formatToParts was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(r))},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw new TypeError("resolvedOptions was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("resolvedOptions was called on a invalid context");return{locale:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),style:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style"),numeric:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric"),numberingSystem:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem")}},e.supportedLocalesOf=function(t,r){return s.supportedLocales(e.availableLocales,s.getCanonicalLocales(t),r)},e.__addLocaleData=function(){for(var t,r,i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=function(t){var r=Object.keys(a(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{}));r.forEach(function(r){try{e.localeData[r]=function(e,t){var r=s.getLocaleHierarchy(e,t.aliases,t.parentLocales),o=r.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new Error('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "));return o.reverse(),o.reduce(function(e,t){return n(n({},e),t)},{nu:[]})}(r,t)}catch(e){}})};try{for(var l=o(i),d=l.next();!d.done;d=l.next())u(d.value)}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.default=d;try{"undefined"!=typeof Symbol&&Object.defineProperty(d.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},2844(){Intl.RelativeTimeFormat&&"function"==typeof Intl.RelativeTimeFormat.__addLocaleData&&Intl.RelativeTimeFormat.__addLocaleData({data:{"en-001":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-150":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-AU":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"in {0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}},"en-CA":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}},"en-SG":{"quarter-short":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr"},"quarter-narrow":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr"},"month-short":{0:"this mth",1:"next mth",future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"},"-1":"last mth"}},en:{nu:["latn"],year:{0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"},"-1":"last year"},"year-short":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},"year-narrow":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},quarter:{0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"},"-1":"last quarter"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},month:{0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"},"-1":"last month"},"month-short":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},"month-narrow":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},week:{0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"},"-1":"last week"},"week-short":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},"week-narrow":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},day:{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-short":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-narrow":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}},availableLocales:["en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-US-POSIX","en-US","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","en"],aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"}})},1534(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(6190);"RelativeTimeFormat"in Intl||Object.defineProperty(Intl,"RelativeTimeFormat",{value:n.default,writable:!0,enumerable:!1,configurable:!0})},1113(e,t,r){r(1534)},9030(e,t,r){r.d(t,{InternalSlotToken:()=>B,SANCTIONED_UNITS:()=>U,createResolveLocale:()=>D,defaultNumberOption:()=>f,getAliasesByLang:()=>h,getCanonicalLocales:()=>C,getInternalSlot:()=>v,getLocaleHierarchy:()=>M,getMultiInternalSlots:()=>b,getNumberOption:()=>p,getOption:()=>d,getParentLocalesByLang:()=>g,invariant:()=>c,isLiteralPart:()=>w,isMissingLocaleDataError:()=>N,isWellFormedCurrencyCode:()=>O,objectIs:()=>E,partitionPattern:()=>S,removeUnitNamespace:()=>K,selectUnit:()=>o,setInternalSlot:()=>y,setMultiInternalSlots:()=>m,setNumberFormatDigitOptions:()=>x,supportedLocales:()=>R,toObject:()=>u,toString:()=>l,unpackData:()=>F}),r.r(t);var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function o(e,t,r){void 0===t&&(t=Date.now()),void 0===r&&(r={});var o=n(n({},i),r||{}),a=(+e-+t)/1e3;if(Math.abs(a)<o.second)return{value:Math.round(a),unit:"second"};var s=a/60;if(Math.abs(s)<o.minute)return{value:Math.round(s),unit:"minute"};var c=a/3600;if(Math.abs(c)<o.hour)return{value:Math.round(c),unit:"hour"};var u=a/86400;if(Math.abs(u)<o.day)return{value:Math.round(u),unit:"day"};var l=new Date(e),d=new Date(t),f=l.getFullYear()-d.getFullYear();if(Math.round(Math.abs(f))>0)return{value:Math.round(f),unit:"year"};var p=12*f+l.getMonth()-d.getMonth();if(Math.round(Math.abs(p))>0)return{value:Math.round(p),unit:"month"};var h=a/604800;return{value:Math.round(h),unit:"week"}}var i={second:45,minute:45,hour:22,day:5};const a={"aa-SAAHO":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun","az-AZ":"az-Latn-AZ",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bih:"bho",bis:"bi",bjd:"drl",bod:"bo",bos:"bs",bre:"br","bs-BA":"bs-Latn-BA",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg-x-cel-gaulish",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",drh:"mn",drw:"fa-af",dut:"nl",dzo:"dz",ekk:"et",ell:"el",emk:"man",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba","ha-Latn-GH":"ha-GH","ha-Latn-NE":"ha-NE","ha-Latn-NG":"ha-NG",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-mingo":"see-x-i-mingo",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kgc:"tdf",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky","kk-Cyrl-KZ":"kk-KZ",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpv:"kv",krm:"bmf","ks-Arab-IN":"ks-IN",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd","ky-Cyrl-KG":"ky-KG",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt","mn-Cyrl-MN":"mn-MN",mnk:"man",mo:"ro",mol:"ro",mon:"mn",mri:"mi","ms-Latn-BN":"ms-BN","ms-Latn-MY":"ms-MY","ms-Latn-SG":"ms-SG",msa:"ms",mst:"mry",mup:"raj",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbl:"nr",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nno:"nn",nns:"nbr",nnx:"ngv",no:"nb","no-bok":"nb","no-BOKMAL":"nb","no-nyn":"nn","no-NYNORSK":"nn",nob:"nb",nor:"nb",npi:"ne",nts:"pij",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj","pa-IN":"pa-Guru-IN","pa-PK":"pa-Arab-PK",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sca:"hle",scc:"sr",scr:"hr","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg",sh:"sr-Latn","shi-MA":"shi-Tfng-MA",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq","sr-BA":"sr-Cyrl-BA","sr-ME":"sr-Latn-ME","sr-RS":"sr-Cyrl-RS","sr-XK":"sr-Cyrl-XK",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thx:"oyb",tib:"bo",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-af",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak","tzm-Latn-MA":"tzm-MA","ug-Arab-CN":"ug-CN",uig:"ug",ukr:"uk",umu:"del",uok:"ema",urd:"ur","uz-AF":"uz-Arab-AF","uz-UZ":"uz-Latn-UZ",uzb:"uz",uzn:"uz","vai-LR":"vai-Vaii-LR",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yid:"yi",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom","yue-CN":"yue-Hans-CN","yue-HK":"yue-Hant-HK",yuu:"yug",zai:"zap","zh-CN":"zh-Hans-CN","zh-guoyu":"zh","zh-hakka":"hak","zh-HK":"zh-Hant-HK","zh-min-nan":"nan","zh-MO":"zh-Hant-MO","zh-SG":"zh-Hans-SG","zh-TW":"zh-Hant-TW","zh-xiang":"hsn","zh-min":"nan-x-zh-min",zha:"za",zho:"zh",zsm:"ms",zul:"zu",zyb:"za"},s={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","zh-Hant-MO":"zh-Hant-HK"};function c(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function u(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function l(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function d(e,t,r,n,o){var i=e[t];if(void 0!==i){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(i=Boolean(i)),"string"===r&&(i=l(i)),void 0!==n&&!n.filter(function(e){return e==i}).length)throw new RangeError(i+" is not within "+n.join(", "));return i}return o}function f(e,t,r,n){if(void 0!==e){if(e=Number(e),isNaN(e)||e<t||e>r)throw new RangeError(e+" is outside of range ["+t+", "+r+"]");return Math.floor(e)}return n}function p(e,t,r,n,o){return f(e[t],r,n,o)}function h(e){return Object.keys(a).reduce(function(t,r){return r.split("-")[0]===e&&(t[r]=a[r]),t},{})}function g(e){return Object.keys(s).reduce(function(t,r){return r.split("-")[0]===e&&(t[r]=s[r]),t},{})}function y(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function m(e,t,r){for(var n=0,o=Object.keys(r);n<o.length;n++){var i=o[n];y(e,t,i,r[i])}}function v(e,t,r){return b(e,t,r)[r]}function b(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=e.get(t);if(!o)throw new TypeError(t+" InternalSlot has not been initialized");return r.reduce(function(e,t){return e[t]=o[t],e},Object.create(null))}function w(e){return"literal"===e.type}function S(e){for(var t=[],r=e.indexOf("{"),n=0,o=0,i=e.length;r<e.length&&r>-1;)c((n=e.indexOf("}",r))>r,"Invalid pattern "+e),r>o&&t.push({type:"literal",value:e.substring(o,r)}),t.push({type:e.substring(r+1,n),value:void 0}),o=n+1,r=e.indexOf("{",o);return o<i&&t.push({type:"literal",value:e.substring(o,i)}),t}function x(e,t,r,n,o){var i=p(r,"minimumIntegerDigits",1,21,1),a=r.minimumFractionDigits,s=r.maximumFractionDigits,c=r.minimumSignificantDigits,u=r.maximumSignificantDigits;y(e,t,"minimumIntegerDigits",i),void 0!==c||void 0!==u?(y(e,t,"roundingType","significantDigits"),c=f(c,1,21,1),u=f(u,c,21,21),y(e,t,"minimumSignificantDigits",c),y(e,t,"maximumSignificantDigits",u)):void 0!==a||void 0!==s?(y(e,t,"roundingType","fractionDigits"),a=f(a,0,20,n),s=f(s,a,20,Math.max(a,o)),y(e,t,"minimumFractionDigits",a),y(e,t,"maximumFractionDigits",s)):"compact"===v(e,t,"notation")?y(e,t,"roundingType","compactRounding"):(y(e,t,"roundingType","fractionDigits"),y(e,t,"minimumFractionDigits",n),y(e,t,"maximumFractionDigits",o))}function E(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}var _=/[^A-Z]/;function O(e){return e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()}),3===e.length&&!_.test(e)}function C(e){var t=Intl.getCanonicalLocales;return"function"==typeof t?t(e):Intl.DateTimeFormat.supportedLocalesOf(e||"")}var k,A=(k=function(e,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},k(e,t)},function(e,t){function r(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),T=function(){return T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)};function D(e){var t=function(e){return function(t,r){for(var n={locale:""},o=0,i=r;o<i.length;o++){var a=i[o],s=a.replace(P,""),c=L(t,s);if(c)return n.locale=c,a!==s&&(n.extension=a.slice(s.length+1,a.length)),n}return n.locale=e(),n}}(e),r=function(e){return function(t,r){for(var n={locale:""},o=0,i=r;o<i.length;o++){var a=i[o],s=a.replace(P,""),c=L(t,s);if(c)return n.locale=c,a!==s&&(n.extension=a.slice(s.length+1,a.length)),n}return n.locale=e(),n}}(e);return function(e,n,o,i,a){for(var s,u=(s="lookup"===o.localeMatcher?t(e,n):r(e,n)).locale,l={locale:"",dataLocale:u},d="-u",f=0,p=i;f<p.length;f++){var h=p[f],g=a[u];c("object"==typeof g&&null!==g,"locale data "+h+" must be an object");var y=g[h];c(Array.isArray(y),"keyLocaleData for "+h+" must be an array");var m=y[0];c("string"==typeof m||null===m,"value must be string or null");var v="";if(s.extension){var b=I(s.extension,h);void 0!==b&&(""!==b?~y.indexOf(b)&&(v="-"+h+"-"+(m=b)):~b.indexOf("true")&&(m="true",v="-"+h))}if(h in o){var w=o[h];c("string"==typeof w||null==w,"optionsValue must be String, Undefined or Null"),~y.indexOf(w)&&w!==m&&(m=w,v="")}l[h]=m,d+=v}if(d.length>2){var S=u.indexOf("-x-");if(-1===S)u+=d;else{var x=u.slice(0,S),E=u.slice(S,u.length);u=x+d+E}u=C(u)[0]}return l.locale=u,l}}function I(e,t){c(2===t.length,"key must have 2 elements");var r=e.length,n="-"+t+"-",o=e.indexOf(n);if(-1!==o){for(var i=o+4,a=i,s=i,u=!1;!u;){var l=e.indexOf("-",s);2===(-1===l?r-s:l-s)?u=!0:-1===l?(a=r,u=!0):(a=l,s=l+1)}return e.slice(i,a)}if(n="-"+t,-1!==(o=e.indexOf(n))&&o+3===r)return""}var P=/-u(?:-[0-9a-z]{2,8})+/gi;function L(e,t){for(var r=t;;){if(~e.indexOf(r))return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function M(e,t,r){var n=[e];t[e]&&(e=t[e],n.push(e));var o=r[e];o&&n.push(o);for(var i=e.split("-"),a=i.length;a>1;a--)n.push(i.slice(0,a-1).join("-"));return n}function R(e,t,r){return void 0!==r&&d(r=u(r),"localeMatcher","string",["lookup","best fit"],"best fit"),function(e,t){for(var r=[],n=0,o=t;n<o.length;n++){var i=L(e,o[n].replace(P,""));i&&r.push(i)}return r}(e,t)}var j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}return A(t,e),t}(Error);function N(e){return"MISSING_LOCALE_DATA"===e.type}function F(e,t,r){void 0===r&&(r=function(e,t){return T(T({},e),t)});var n=M(e,t.aliases,t.parentLocales),o=n.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new j('Missing locale data for "'+e+'", lookup hierarchy: '+n.join(", "));return o.reverse(),o.reduce(r,{})}var B,U=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function K(e){return e.replace(/^(.*?)-/,"")}!function(e){e.compactName="compactName",e.compactSymbol="compactSymbol",e.currencyCode="currencyCode",e.currencyName="currencyName",e.currencyNarrowSymbol="currencyNarrowSymbol",e.currencySymbol="currencySymbol",e.minusSign="minusSign",e.number="number",e.percentSign="percentSign",e.plusSign="plusSign",e.scientificExponent="scientificExponent",e.scientificSeparator="scientificSeparator",e.unitName="unitName",e.unitNarrowSymbol="unitNarrowSymbol",e.unitSymbol="unitSymbol"}(B||(B={}))},2505(e,t,r){e.exports=r(8015)},5592(e,t,r){var n=r(9516),o=r(7522),i=r(3948),a=r(9106),s=r(9615),c=r(2012),u=r(4202),l=r(4896),d=r(5845),f=r(8563),p=r(5656),h=r(5721);e.exports=function(e){return new Promise(function(t,r){var g,y=e.data,m=e.headers,v=e.responseType,b=n.hasOwnProperty(e,"withXSRFToken")?e.withXSRFToken:void 0;function w(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}n.isFormData(y)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var S=new XMLHttpRequest,x=n.hasOwnProperty(e,"auth")?e.auth:void 0;if(x){var E=n.hasOwnProperty(x,"username")&&x.username||"",_=n.hasOwnProperty(x,"password")&&x.password?unescape(encodeURIComponent(x.password)):"";m.Authorization="Basic "+btoa(E+":"+_)}var O=s(e.baseURL,e.url,e.allowAbsoluteUrls);function C(){if(S){var n="getAllResponseHeaders"in S?c(S.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?S.response:S.responseText,status:S.status,statusText:S.statusText,headers:n,config:e,request:S};o(function(e){t(e),w()},function(e){r(e),w()},i),S=null}}if(S.open(e.method.toUpperCase(),a(O,e.params,n.hasOwnProperty(e,"paramsSerializer")?e.paramsSerializer:void 0),!0),S.timeout=e.timeout,"onloadend"in S?S.onloadend=C:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(C)},S.onabort=function(){S&&(r(new d("Request aborted",d.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,S)),S=null},n.isStandardBrowserEnv()&&(n.isFunction(b)&&(b=b(e)),!0===b||!1!==b&&u(O))){var k=e.xsrfHeaderName&&e.xsrfCookieName&&i.read(e.xsrfCookieName);k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in S&&n.forEach(m,function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete m[t]:S.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(S.withCredentials=!!e.withCredentials),v&&"json"!==v&&(S.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&S.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&S.upload&&S.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(t){S&&(r(!t||t.type?new f(null,e,S):t),S.abort(),S=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),y||!1===y||0===y||""===y||(y=null);var A=p(O);A&&-1===h.protocols.indexOf(A)?r(new d("Unsupported protocol "+A+":",d.ERR_BAD_REQUEST,e)):S.send(y)})}},8015(e,t,r){var n=r(9516),o=r(9012),i=r(5155),a=r(5343),s=r(7412),c=r(4298),u=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(s);u.Axios=i,u.CanceledError=r(8563),u.CancelToken=r(3191),u.isCancel=r(3864),u.VERSION=r(9641).version,u.toFormData=r(6440),u.AxiosError=r(5845),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=r(7980),u.isAxiosError=r(5019),u.formToJSON=function(e){return c(n.isHTMLForm(e)?new FormData(e):e)},e.exports=u,e.exports.default=u},3191(e,t,r){var n=r(8563);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,o,i){r.reason||(r.reason=new n(e,o,i),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e,t=new o(function(t){e=t});return{token:t,cancel:e}},e.exports=o},8563(e,t,r){var n=r(5845);function o(e,t,r){n.call(this,null==e?"canceled":e,n.ERR_CANCELED,t,r),this.name="CanceledError"}r(9516).inherits(o,n,{__CANCEL__:!0}),e.exports=o},3864(e){e.exports=function(e){return!(!e||!e.__CANCEL__)}},5155(e,t,r){var n=r(9516),o=r(9106),i=r(3471),a=r(4490),s=r(5343),c=r(9615),u=r(4841),l=u.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var o=t.paramsSerializer;null!=o&&(n.isFunction(o)?t.paramsSerializer={serialize:o}:u.assertOptions(o,{encode:l.function,serialize:l.function},!0));var i=[],c=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});var d,f=[];if(this.interceptors.response.forEach(function(e){f.push(e.fulfilled,e.rejected)}),!c){var p=[a,void 0];for(Array.prototype.unshift.apply(p,i),p=p.concat(f),d=Promise.resolve(t);p.length;)d=d.then(p.shift(),p.shift());return d}for(var h=t;i.length;){var g=i.shift(),y=i.shift();try{h=g(h)}catch(e){y(e);break}}try{d=a(h)}catch(e){return Promise.reject(e)}for(;f.length;)d=d.then(f.shift(),f.shift());return d},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url,e.allowAbsoluteUrls);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],function(e){d.prototype[e]=function(t,r){var o=r||{};return this.request(s(o,{method:e,url:t,data:n.hasOwnProperty(o,"data")?o.data:void 0}))}}),n.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)}),e.exports=d},5845(e,t,r){var n=r(9516),o=r(5235);function i(e){var t=Object.create(null);return t.value=e,t}var a="[Circular]";function s(e,t,r,o){var i;return function(e,t){return"string"==typeof e&&t[e.toLowerCase()]}(r,t)?"[REDACTED ****]":n.isArray(e)?-1!==o.indexOf(e)?a:(o.push(e),i=[],n.forEach(e,function(e,r){i[r]=s(e,t,r,o)}),o.pop(),i):n.isPlainObject(e)?-1!==o.indexOf(e)?a:(o.push(e),i={},n.forEach(e,function(e,r){i[r]=s(e,t,r,o)}),o.pop(),i):e}function c(e){return e?s(e,function(e){var t=(e&&n.isArray(e.redact)&&e.redact.length?e.redact:null)||o,r={};return n.forEach(t,function(e){"string"==typeof e&&(r[e.toLowerCase()]=!0)}),r}(e),void 0,[]):e}function u(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(u,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var l=u.prototype,d=Object.create(null);["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL","ERR_FORM_DATA_DEPTH_EXCEEDED"].forEach(function(e){d[e]=i(e)}),Object.defineProperties(u,d),Object.defineProperty(l,"isAxiosError",i(!0)),u.from=function(e,t,r,o,i,a){var s=Object.create(l);return n.toFlatObject(e,s,function(e){return e!==Error.prototype}),u.call(s,e.message,t,r,o,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s},e.exports=u},3471(e,t,r){var n=r(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.clear=function(){this.handlers&&(this.handlers=[])},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},9615(e,t,r){var n=r(9137),o=r(4680);e.exports=function(e,t,r){var i=!n(t);return e&&(i||!1===r)?o(e,t):t}},4490(e,t,r){var n=r(9516),o=r(2881),i=r(3864),a=r(7412),s=r(8563),c=r(7018),u=r(5380);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,null,e.transformRequest),c(e.headers,"Accept"),c(e.headers,"Content-Type");var t=n.hasOwnProperty(e.headers,"common")&&e.headers.common?e.headers.common:{},r=e.method&&n.hasOwnProperty(e.headers,e.method)&&e.headers[e.method]?e.headers[e.method]:{};return e.headers=n.merge(t,r,e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),n.forEach(e.headers,function(t,r){e.headers[r]=u(t)}),(e.adapter||a.adapter)(e).then(function(t){return l(e),t.data=o.call(e,t.data,t.headers,t.status,e.transformResponse),t},function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)})}},5343(e,t,r){var n=r(9516);e.exports=function(e,t){t=t||{};var r=Object.create(null);function o(e,t){return n.hasOwnProperty(e,t)?e[t]:void 0}function i(e,t){return n.hasOwnProperty(e,t)}function a(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isEmptyObject(t)?n.merge({},e):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function s(r){return i(t,r)&&!n.isUndefined(t[r])?a(o(e,r),t[r]):i(e,r)&&!n.isUndefined(e[r])?a(void 0,e[r]):void 0}function c(e){if(i(t,e)&&!n.isUndefined(t[e]))return a(void 0,t[e])}function u(r){return i(t,r)&&!n.isUndefined(t[r])?a(void 0,t[r]):i(e,r)&&!n.isUndefined(e[r])?a(void 0,e[r]):void 0}function l(r){return i(t,r)?a(o(e,r),t[r]):i(e,r)?a(void 0,e[r]):void 0}var d={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){if("__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var t=n.hasOwnProperty(d,e)?d[e]:s,o=t(e);n.isUndefined(o)&&t!==l||(r[e]=o)}}),r}},7522(e,t,r){var n=r(5845);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},2881(e,t,r){var n=r(9516),o=r(7412);e.exports=function(e,t,r,i){var a=this||o;return n.forEach(i,function(n){e=n.call(a,e,t,r)}),e}},7412(e,t,r){var n=r(9516),o=r(7018),i=r(5845),a=r(4896),s=r(6440),c=r(6069),u=r(5721),l=r(4298),d=r(5235),f={"Content-Type":"application/x-www-form-urlencoded"};function p(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h,g={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(h=r(5592)),h),transformRequest:[function(e,t){o(t,"Accept"),o(t,"Content-Type");var r,i=t&&t["Content-Type"]||"",a=i.indexOf("application/json")>-1,u=n.isObject(e);if(u&&n.isHTMLForm(e)&&(e=new FormData(e)),n.isFormData(e))return a?JSON.stringify(l(e)):e;if(n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return p(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(u){var d=n.hasOwnProperty(this,"formSerializer")?this.formSerializer:void 0,f=n.hasOwnProperty(this,"env")?this.env:void 0;if(-1!==i.indexOf("application/x-www-form-urlencoded"))return c(e,d).toString();if((r=n.isFileList(e))||i.indexOf("multipart/form-data")>-1){var h=f&&f.FormData;return s(r?{"files[]":e}:e,h&&new h,d)}}return u||a?(p(t,"application/json"),function(e){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||g.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&n.isString(e)&&(r&&!this.responseType||o)){var a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,redact:d.slice(),env:{FormData:u.classes.FormData,Blob:u.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){g.headers[e]={}}),n.forEach(["post","put","patch"],function(e){g.headers[e]=n.merge(f)}),e.exports=g},4896(e){e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},786(e,t,r){e.exports=r(1894)},9641(e){e.exports={version:"0.33.0"}},170(e,t,r){var n=r(6440);function o(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20/g,function(e){return t[e]})}function i(e,t){this._pairs=[],e&&n(e,this,t)}var a=i.prototype;a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(e){var t=e?function(t){return e.call(this,t,o)}:o;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},e.exports=i},9012(e){e.exports=function(e,t){return function(){return e.apply(t,arguments)}}},9106(e,t,r){var n=r(9516),o=r(170);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a));var s,c,u=i;return r&&(n.isFunction(r)?s=r:(u=n.hasOwnProperty(r,"encode")&&r.encode||i,s=n.hasOwnProperty(r,"serialize")?r.serialize:void 0)),(c=s?s(t,r):n.isURLSearchParams(t)?t.toString():new o(t,r).toString(u))&&(e+=(-1===e.indexOf("?")?"?":"&")+c),e}},4680(e){e.exports=function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}},3948(e,t,r){var n=r(9516);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){for(var t,r=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(t=n[o];" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return decodeURIComponent(t.substring(r.length))}return null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},5235(e){e.exports=["authorization","proxy-authorization","cookie","set-cookie","x-api-key","password"]},4298(e,t,r){var n=r(9516),o=r(5845);e.exports=function(e){function t(e,r,o,i){var a=e[i++];if("__proto__"===a)return!0;var s=Number.isFinite(+a),c=i>=e.length;return a=!a&&n.isArray(o)?o.length:a,c?(n.hasOwnProperty(o,a)?o[a]=[o[a],r]:o[a]=r,!s):(o[a]&&n.isObject(o[a])||(o[a]=[]),t(e,r,o[a],i)&&n.isArray(o[a])&&(o[a]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(o[a])),!s)}if(n.isFormData(e)&&n.isFunction(e.entries)){var r={};return n.forEachEntry(e,function(e,i){var a=function(e){return n.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}(e);!function(e){var t=e.length-1;if(t>100)throw new o("Maximum object depth of 100 exceeded (got "+t+" levels)",o.ERR_FORM_DATA_DEPTH_EXCEEDED)}(a),t(a,i,r,0)}),r}return null}},9137(e){e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5019(e,t,r){var n=r(9516);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},4202(e,t,r){var n=r(9516);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},7018(e,t,r){var n=r(9516);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},2012(e,t,r){var n=r(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=n.trim(e.slice(0,i)).toLowerCase(),r=n.trim(e.slice(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},5656(e){e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5380(e,t,r){var n=r(9516),o=/[^\x09\x20-\x7E\x80-\xFF]/g,i=/^[\x09\x20]+|[\x09\x20]+$/g;e.exports=function e(t){return!1===t||null==t?t:n.isArray(t)?t.map(e):String(t).replace(o,"").replace(i,"")}},7980(e){e.exports=function(e){return function(t){return e.apply(null,t)}}},6440(e,t,r){var n=r(9516),o=r(5845),i=r(786);function a(e){return n.isPlainObject(e)||n.isArray(e)}function s(e){return n.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,r){return e?e.concat(t).map(function(e,t){return e=s(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}var u=n.toFlatObject(n,{},null,function(e){return/^is[A-Z]/.test(e)});e.exports=function(e,t,r){if(!n.isObject(e))throw new TypeError("target must be an object");t=t||new(i||FormData);var l,d=(r=n.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!n.isUndefined(t[e])})).metaTokens,f=r.visitor||S,p=r.dots,h=r.indexes,g=r.Blob||"undefined"!=typeof Blob&&Blob,y=void 0===r.maxDepth?100:r.maxDepth,m=g&&(l=t)&&n.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];if(!n.isFunction(f))throw new TypeError("visitor must be a function");function v(e){if(null===e)return"";if(n.isDate(e))return e.toISOString();if(!m&&n.isBlob(e))throw new o("Blob is not supported. Use a Buffer instead.");return n.isArrayBuffer(e)||n.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}var b=[];function w(e,t){if(t>y)throw new o("Maximum object depth of "+y+" exceeded (got "+t+" levels)",o.ERR_FORM_DATA_DEPTH_EXCEEDED);n.isObject(e)&&-1===b.indexOf(e)&&(b.push(e),n.forEach(e,function(e){w(e,t+1)}),b.pop())}function S(e,r,o){var i=e;if(e&&!o&&"object"==typeof e)if(n.endsWith(r,"{}"))r=d?r:r.slice(0,-2),w(e,1),e=JSON.stringify(e);else if(n.isArray(e)&&function(e){return n.isArray(e)&&!e.some(a)}(e)||n.isFileList(e)||n.endsWith(r,"[]")&&(i=n.toArray(e)))return r=s(r),i.forEach(function(e,o){!n.isUndefined(e)&&null!==e&&t.append(!0===h?c([r],o,p):null===h?r:r+"[]",v(e))}),!1;return!!a(e)||(t.append(c(o,r,p),v(e)),!1)}var x=Object.assign(u,{defaultVisitor:S,convertValue:v,isVisitable:a});if(!n.isObject(e))throw new TypeError("data must be an object");return function e(r,i,a){if(!n.isUndefined(r)){if((a=a||0)>y)throw new o("Maximum object depth of "+y+" exceeded (got "+a+" levels)",o.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==b.indexOf(r))throw Error("Circular reference detected in "+i.join("."));b.push(r),n.forEach(r,function(r,o){!0===(!(n.isUndefined(r)||null===r)&&f.call(t,r,n.isString(o)?o.trim():o,i,x))&&e(r,i?i.concat(o):[o],a+1)}),b.pop()}}(e,null,0),t}},6069(e,t,r){var n=r(9516),o=r(6440),i=r(5721);e.exports=function(e,t){return o(e,new i.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return i.isNode&&n.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}},4841(e,t,r){var n=r(9641).version,o=r(5845),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var c=e[a],u=void 0===c||s(c,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},243(e){e.exports=FormData},2002(e,t,r){var n=r(170);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:n},9490(e,t,r){e.exports={isBrowser:!0,classes:{URLSearchParams:r(2002),FormData:r(243),Blob},protocols:["http","https","file","blob","url","data"]}},5721(e,t,r){e.exports=r(9490)},9516(e,t,r){var n,o=r(9012),i=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var l=s("ArrayBuffer");function d(e){return"number"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),g=s("File"),y=s("Blob"),m=s("FileList");function v(e){return"[object Function]"===i.call(e)}var b=s("URLSearchParams");function w(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var S,x,E=(S="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return S&&e instanceof S}),_=s("HTMLFormElement"),O=(x=Object.prototype.hasOwnProperty,function(e,t){return x.call(e,t)});e.exports={isArray:c,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";if(!e)return!1;if("function"==typeof FormData&&e instanceof FormData)return!0;if(!f(e))return!1;var r=Object.getPrototypeOf(e);return!(!r||r===Object.prototype)&&!!v(e.append)&&(i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:d,isObject:f,isPlainObject:p,isEmptyObject:function(e){if(!p(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},isUndefined:u,isDate:h,isFile:g,isBlob:y,isFunction:v,isStream:function(e){return f(e)&&v(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t=Object.create(null);function r(r,n){var o;"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(p(o=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0)&&p(r)?t[n]=e(o,r):p(r)?t[n]=e({},r):c(r)?t[n]=r.slice():t[n]=r)}for(var n=0,o=arguments.length;n<o;n++)w(arguments[n],r);return t},extend:function(e,t,r){return w(t,function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!d(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:E,isFileList:m,forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:_,hasOwnProperty:O}},2485(e,t){var r;!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},5889(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(5748),a=r(3018),s=r(6840),c=r(5224),u=r(9938),l=r(2242),d=r(6991),f=r(7282),p=r(9404),h=r(6059),g=f("draft_tree_data_support"),y=g?c:s,m=p.List,v=p.Repeat,b={insertAtomicBlock:function(e,t,r){var o=e.getCurrentContent(),s=e.getSelection(),c=u.removeRange(o,s,"backward"),f=c.getSelectionAfter(),p=u.splitBlock(c,f),h=p.getSelectionAfter(),b=u.setBlockType(p,h,"atomic"),w=a.create({entity:t}),S={key:d(),type:"atomic",text:r,characterList:m(v(w,r.length))},x={key:d(),type:"unstyled"};g&&(S=n({},S,{nextSibling:x.key}),x=n({},x,{prevSibling:S.key}));var E=[new y(S),new y(x)],_=i.createFromArray(E),O=u.replaceWithFragment(b,h,_),C=O.merge({selectionBefore:s,selectionAfter:O.getSelectionAfter().set("hasFocus",!0)});return l.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,r,n){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===n||"after"===n){var s=i.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());o=h(i,t,s,n)}else{var c=u.removeRange(i,r,"backward"),d=c.getSelectionAfter(),f=c.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())o=h(c,t,f,"before");else if(d.getEndOffset()===f.getLength())o=h(c,t,f,"after");else{var p=u.splitBlock(c,d),g=p.getSelectionAfter(),y=p.getBlockForKey(g.getFocusKey());o=h(p,t,y,"before")}}var m=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(e,m,"move-block")}};e.exports=b},5748(e,t,r){var n=r(9404).OrderedMap,o={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},9981(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(8227),i=r(679),a=r(9404),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},d=u({start:null,end:null}),f=u({start:null,end:null,decoratorKey:null,leaves:null}),p={generate:function(e,t,r){var n=t.getLength();if(!n)return s.of(new f({start:0,end:0,decoratorKey:null,leaves:s.of(new d({start:0,end:0}))}));var i=[],a=r?r.getDecorations(t,e):s(c(null,n)),u=t.getCharacterList();return o(a,h,l,function(e,t){var r,n,c,p;i.push(new f({start:e,end:t,decoratorKey:a.get(e),leaves:(r=u.slice(e,t).toList(),n=e,c=[],p=r.map(function(e){return e.getStyle()}).toList(),o(p,h,l,function(e,t){c.push(new d({start:e+n,end:t+n}))}),s(c))}))}),s(i)},fromJS:function(e){var t=e.leaves,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["leaves"]);return new f(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},r,{leaves:null!=t?s(Array.isArray(t)?t:i(t)).map(function(e){return d(e)}):null}))}};function h(e,t){return e===t}e.exports=p},3018(e,t,r){var n=r(9404),o=n.Map,i=n.OrderedSet,a=n.Record,s=i(),c={style:s,entity:null},u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},n.applyStyle=function(e,t){var r=e.set("style",e.getStyle().add(t));return n.create(r)},n.removeStyle=function(e,t){var r=e.set("style",e.getStyle().remove(t));return n.create(r)},n.applyEntity=function(e,t){var r=e.getEntity()===t?e:e.set("entity",t);return n.create(r)},n.create=function(e){if(!e)return l;var t=o({style:s,entity:null}).merge(e),r=d.get(t);if(r)return r;var i=new n(t);return d=d.set(t,i),i},n.fromJS=function(e){var t=e.style,r=e.entity;return new n({style:Array.isArray(t)?i(t):t,entity:Array.isArray(r)?i(r):r})},n}(a(c)),l=new u,d=o([[o(c),l]]);u.EMPTY=l,e.exports=u},9083(e,t,r){var n=r(9404).List,o=function(){function e(e){var t,r;r=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var r=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,o){var i=0;(0,n.strategy)(e,function(e,t){(function(e,t,r){for(var n=t;n<r;n++)if(null!=e[n])return!1;return!0})(r,e,t)&&(function(e,t,r,n){for(var o=t;o<r;o++)e[o]=n}(r,e,t,o+"."+i),i++)},t)}),n(r)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},6840(e,t,r){var n=r(3018),o=r(8227),i=r(9404),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,d=c(),f=function(e){var t,r;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(t))||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){o(this.getCharacterList(),p,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},5224(e,t,r){var n=r(3018),o=r(8227),i=r(9404),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,d=c(),f={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,r;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(t))||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){o(this.getCharacterList(),p,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(u(f));e.exports=g},7656(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(5748),a=r(3018),s=r(6840),c=r(5224),u=r(1608),l=r(1381),d=r(6991),f=r(679),p=r(7282),h=r(9404),g=r(1721),y=h.List,m=h.Record,v=h.Repeat,b=h.Map,w=h.OrderedMap,S=m({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),x=p("draft_tree_data_support")?c:s,E=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=o.prototype;return s.getEntityMap=function(){return u},s.getBlockMap=function(){return this.get("blockMap")},s.getSelectionBefore=function(){return this.get("selectionBefore")},s.getSelectionAfter=function(){return this.get("selectionAfter")},s.getBlockForKey=function(e){return this.getBlockMap().get(e)},s.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},s.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},s.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,r){return r===e}).skip(1).first()},s.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,r){return r===e}).skip(1).first()},s.getBlocksAsArray=function(){return this.getBlockMap().toArray()},s.getFirstBlock=function(){return this.getBlockMap().first()},s.getLastBlock=function(){return this.getBlockMap().last()},s.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},s.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},s.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,r){return u.__create(e,t,r),this},s.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},s.addEntity=function(e){return u.__add(e),this},s.getEntity=function(e){return u.__get(e)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(e){return u.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,n=i.createFromArray(r),a=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new o({blockMap:n,entityMap:t||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(t).map(function(e){return e=g(e),new x({key:d(),text:e,type:"unstyled",characterList:y(v(a.EMPTY,e.length))})});return o.createFromBlockArray(r)},o.fromJS=function(e){return new o(n({},e,{blockMap:w(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new l(e.selectionBefore),selectionAfter:new l(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new x(n({},e,{data:b(e.data),characterList:null!=t?y((Array.isArray(t)?t:f(t)).map(function(e){return a.fromJS(e)})):void 0}))},o}(S);e.exports=E},4092(e,t,r){var n=r(3018),o=r(9404).Map,i={add:function(e,t,r){return a(e,t,r,!0)},remove:function(e,t,r){return a(e,t,r,!1)}};function a(e,t,r,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),d=a.skipUntil(function(e,t){return t===s}).takeUntil(function(e,t){return t===u}).concat(o([[u,a.get(u)]])).map(function(e,t){var o,a;s===u?(o=c,a=l):(o=t===s?c:0,a=t===u?l:e.getLength());for(var d,f=e.getCharacterList();o<a;)d=f.get(o),f=f.set(o,i?n.applyStyle(d,r):n.removeStyle(d,r)),o++;return e.set("characterList",f)});return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}e.exports=i},7378(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(4134),i=r(8372),a=r(5389),s=r(9404),c=r(646),u=r(6408),l=s.Map,d={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},f=o.isBrowser("IE <= 11"),p=function(){function e(e){var t=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=e,this.mutations=l();var r=a(e);r.MutationObserver&&!f?this.observer=new r.MutationObserver(function(e){return t.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,d):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,r=e.target,n=e.removedNodes;if("characterData"===t){if(""!==r.textContent)return f?r.textContent.replace("\n",""):r.textContent}else if("childList"===t){if(n&&n.length)return"";if(""!==r.textContent)return r.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var r=u(i(e.target));this.mutations=this.mutations.set(r,t)}},e}();e.exports=p},3387(e,t,r){var n=r(2015),o=r(8003),i=(0,r(9404).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:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},7918(e){e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},5143(e,t,r){var n=r(5889),o=r(5748),i=r(3018),a=r(9083),s=r(6840),c=r(7656),u=r(3387),l=r(7918),d=r(3299),f=r(1124),p=r(1608),h=r(9938),g=r(5407),y=r(2242),m=r(9414),v=r(6429),b=r(4637),w=r(1381),S=r(7470),x=r(428),E=r(6991),_=r(7811),O=r(894),C={Editor:d,EditorBlock:f,EditorState:y,CompositeDecorator:a,Entity:p,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:n,KeyBindingUtil:m,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:r(4712),convertFromRaw:x,convertToRaw:S,genKey:E,getDefaultKeyBinding:_,getVisibleSelectionRect:O};e.exports=C},3299(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){s(e,t,r[t])})}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=r(3387),l=r(7918),d=r(755),f=r(9777),p=r(2474),h=r(7784),g=r(4576),y=r(7503),m=r(3334),v=r(2242),b=r(2015),w=r(3529),S=r(2935),x=r(4134),E=r(8003),_=r(6991),O=r(7811),C=r(7392),k=r(7282),A=r(646),T=r(5291),D=r(6408),I=x.isBrowser("IE"),P=!I,L={edit:h,composite:d,drag:p,cut:null,render:null},M=!1,R=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var r=t.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),j=function(e){function t(t){var r;return s(a(r=e.call(this,t)||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(e){r.editorContainer=e,r.editor=null!==e?e.firstChild:null}),s(a(r),"focus",function(e){var t=r.props.editorState,n=t.getSelection().getHasFocus(),o=r.editor;if(o){var i=S.getScrollParent(o),a=e||C(i),s=a.x,c=a.y;T(o)||A(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),n||r.update(v.forceSelection(t,t.getSelection()))}}),s(a(r),"blur",function(){var e=r.editor;e&&(T(e)||A(!1),e.blur())}),s(a(r),"setMode",function(e){var t=r.props,n=t.onPaste,o=t.onCut,a=t.onCopy,s=i({},L.edit);n&&(s.onPaste=n),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},L,{edit:s});r._handler=c[e]}),s(a(r),"exitCurrentMode",function(){r.setMode("edit")}),s(a(r),"restoreEditorDOM",function(e){r.setState({contentsKey:r.state.contentsKey+1},function(){r.focus(e)})}),s(a(r),"setClipboard",function(e){r._clipboard=e}),s(a(r),"getClipboard",function(){return r._clipboard}),s(a(r),"update",function(e){r._latestEditorState=e,r.props.onChange(e)}),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=t.editorKey||_(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=t.editorState,r._latestCommittedEditorState=t.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}c(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(r){if(!t.props.readOnly){var n=t._handler&&t._handler[e];n&&(g?g(function(){return n(t,r)}):n(t,r))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(y,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,n=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,c=e.editorState,u=e.preventScroll,d=e.readOnly,p=e.textAlignment,h=e.textDirectionality,g=E({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===p,"DraftEditor/alignRight":"right"===p,"DraftEditor/alignCenter":"center"===p}),y=this.props.role||"textbox",m="combobox"===y?!!this.props.ariaExpanded:null,v={blockRenderMap:t,blockRendererFn:r,blockStyleFn:n,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:g},this._renderPlaceholder(),b.createElement("div",{className:E("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":d?null:m,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":d?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:E({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"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:d?null:y,spellCheck:P&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(R,{editor:this,editorState:c}),b.createElement(f,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!M&&k("draft_ods_enabled")&&(M=!0,m.initODS()),this.setMode("edit"),I&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):globalThis.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(b.Component);s(j,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:O,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=j},1124(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var i=r(5203),a=r(3885),s=r(2015),c=r(3529),u=r(2935),l=r(8307),d=r(5822),f=r(8003),p=r(8527),h=r(7392),g=r(1401),y=r(646),m=r(5291),v=r(6408),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},w=function(e){var t,r;function n(){for(var t,r,n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(n="_node")in(r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var w=n.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var r=this._node;if(null!=r){var n,o=u.getScrollParent(r),i=h(o);if(o===window){var a=p(r);(n=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+n+10)}else m(r)||y(!1),(n=r.offsetHeight+r.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+n+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,r=t.getKey(),n=t.getText(),c=this.props.tree.size-1,u=b(this.props.selection,r);return this.props.tree.map(function(f,p){var h=f.get("leaves");if(0===h.size)return null;var g=h.size-1,y=h.map(function(o,l){var d=a.encode(r,p,l),f=o.get("start"),h=o.get("end");return s.createElement(i,{key:d,offsetKey:d,block:t,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:n.slice(f,h),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:p===c&&l===g})}).toArray(),m=f.get("decoratorKey");if(null==m)return y;if(!e.props.decorator)return y;var b=v(e.props.decorator),w=b.getComponentForKey(m);if(!w)return y;var S=b.getPropsForKey(m),x=a.encode(r,p,0),E=h.first().get("start"),_=h.last().get("end"),O=n.slice(E,_),C=t.getEntityAt(f.get("start")),k=d.getHTMLDirIfDifferent(l.getDirection(O),e.props.direction),A={contentState:e.props.contentState,decoratedText:O,dir:k,start:E,end:_,blockKey:r,entityKey:C,offsetKey:x};return s.createElement(w,o({},S,A,{key:x}),y)}).toArray()},w.render=function(){var e=this,t=this.props,r=t.direction,n=t.offsetKey,o=f({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return s.createElement("div",{"data-offset-key":n,className:o,ref:function(t){return e._node=t}},this._renderChildren())},n}(s.Component);e.exports=w},2784(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){a(e,t,r[t])})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(4379),c=r(3885),u=r(2015),l=r(3529),d=r(2935),f=r(8527),p=r(7392),h=r(1401),g=r(9404),y=r(646),m=r(5291),v=(g.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),b=function(e,t){var r=t.get(e.getType())||t.get("unstyled"),n=r.wrapper;return{Element:r.element||t.get("unstyled").element,wrapperTemplate:n}},w=function(e,t){var r=t(e);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},S=function(e,t,r,n,o,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},c=n(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=i({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},x=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(n))||this),"wrapperRef",u.createRef()),t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var g=n.prototype;return g.shouldComponentUpdate=function(e){var t=this.props,r=t.block,n=t.direction,o=t.tree,i=!r.getChildKeys().isEmpty(),a=r!==e.block||o!==e.tree||n!==e.direction||v(e.selection,e.block.getKey())&&e.forceSelection;return i||a},g.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var r=this.wrapperRef.current;if(r){var n,o=d.getScrollParent(r),i=p(o);if(o===window){var a=f(r);(n=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+n+10)}else{m(r)||y(!1);var s=r;(n=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+n+10)}}}},g.render=function(){var e=this,t=this.props,r=t.block,a=t.blockRenderMap,l=t.blockRendererFn,d=t.blockStyleFn,f=t.contentState,p=t.decorator,h=t.editorKey,g=t.editorState,y=t.customStyleFn,m=t.customStyleMap,x=t.direction,E=t.forceSelection,_=t.selection,O=t.tree,C=null;r.children.size&&(C=r.children.reduce(function(t,r){var o=c.encode(r,0,0),s=f.getBlockForKey(r),p=w(s,l),y=p.CustomComponent||n,m=b(s,a),v=m.Element,x=m.wrapperTemplate,E=S(s,h,o,d,p,null),_=i({},e.props,{tree:g.getBlockTree(r),blockProps:p.customProps,offsetKey:o,block:s});return t.push(u.createElement(v,E,u.createElement(y,_))),!x||function(e,t){var r=e.getNextSiblingKey();return!!r&&t.getBlockForKey(r).getType()===e.getType()}(s,f)||function(e,t,r){var n=[],o=!0,i=!1,a=void 0;try{for(var s,l=r.reverse()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var d=s.value;if(d.type!==t)break;n.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var f=n.reverse(),p=f[0].key;r.push(u.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":c.encode(p,0,0)},f))}(x,v,t),t},[]));var k=r.getKey(),A=c.encode(k,0,0),T=w(r,l),D=T.CustomComponent,I=null!=D?u.createElement(D,o({},this.props,{tree:g.getBlockTree(k),blockProps:T.customProps,offsetKey:A,block:r})):u.createElement(s,{block:r,children:C,contentState:f,customStyleFn:y,customStyleMap:m,decorator:p,direction:x,forceSelection:E,hasSelection:v(_,k),selection:_,tree:O});if(r.getParentKey())return I;var P=b(r,a).Element,L=S(r,h,A,d,T,this.wrapperRef);return u.createElement(P,L,I)},n}(u.Component);e.exports=x},755(e,t,r){var n=r(7378),o=r(9938),i=r(3885),a=r(2242),s=r(5852),c=r(4134),u=r(6207),l=r(3564),d=r(120),f=r(9927),p=r(6408),h=c.isBrowser("IE"),g=!1,y=!1,m=null,v={onCompositionStart:function(e){y=!0,function(e){m||(m=new n(l(e))).start()}(e)},onCompositionEnd:function(e){g=!1,y=!1,setTimeout(function(){g||v.resolveComposition(e)},20)},onSelect:u,onKeyDown:function(e,t){if(!y)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!y){var t=p(m).stopAndFlushMutations();m=null,g=!0;var r=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var n=r.getCurrentContent();t.forEach(function(e,t){var s=i.decode(t),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,d=r.getBlockTree(c).getIn([u,"leaves",l]),p=d.start,h=d.end,g=r.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:p,focusOffset:h,isBackward:!1}),y=f(n,g),m=n.getBlockForKey(c).getInlineStyleAt(p);n=o.replaceText(n,g,e,m,y),r=a.set(r,{currentContent:n})});var s=d(r,l(e)).selectionState;e.restoreEditorDOM();var c=h?a.forceSelection(r,s):a.acceptSelection(r,s);e.update(a.push(c,n,"insert-characters"))}else e.update(r)}}};e.exports=v},3659(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){a(e,t,r[t])})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(1124),c=r(3885),u=r(2015),l=r(8003),d=r(798),f=r(6408),p=function(e,t,r,n){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":r,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===n,"public/DraftStyleDefault/listRTL":"RTL"===n})},h=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,r=e.editorState;if(t.getDirectionMap()!==r.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=r.isInCompositionMode();if(t===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=t.getCurrentContent(),s=r.getCurrentContent(),c=t.getDecorator(),u=r.getDecorator();return o!==i||a!==s||c!==u||r.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,n=e.blockStyleFn,a=e.customStyleMap,l=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,m=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),S=h.getDecorator(),x=f(h.getDirectionMap()),E=v.getBlocksAsArray(),_=[],O=null,C=null,k=0;k<E.length;k++){var A=E[k],T=A.getKey(),D=A.getType(),I=r(A),P=void 0,L=void 0,M=void 0;I&&(P=I.component,L=I.props,M=I.editable);var R=m||x.get(T),j=c.encode(T,0,0),N={contentState:v,block:A,blockProps:L,blockStyleFn:n,customStyleMap:a,customStyleFn:l,decorator:S,direction:R,forceSelection:w,offsetKey:j,preventScroll:y,selection:b,tree:h.getBlockTree(T)},F=t.get(D)||t.get("unstyled"),B=F.wrapper,U=F.element||t.get("unstyled").element,K=A.getDepth(),H="";n&&(H=n(A)),"li"===U&&(H=d(H,p(D,K,C!==B||null===O||K>O,R)));var z=P||s,V={className:H,"data-block":!0,"data-editor":g,"data-offset-key":j,key:T};void 0!==M&&(V=i({},V,{contentEditable:M,suppressContentEditableWarning:!0}));var q=u.createElement(U,V,u.createElement(z,o({},N,{key:T})));_.push({block:q,wrapperTemplate:B,key:T,offsetKey:j}),O=B?A.getDepth():null,C=B}for(var G=[],W=0;W<_.length;){var $=_[W];if($.wrapperTemplate){var Y=[];do{Y.push(_[W].block),W++}while(W<_.length&&_[W].wrapperTemplate===$.wrapperTemplate);var X=u.cloneElement($.wrapperTemplate,{key:$.key+"-wrap","data-offset-key":$.offsetKey},Y);G.push(X)}else G.push($.block),W++}return u.createElement("div",{"data-contents":"true"},G)},n}(u.Component);e.exports=h},9777(e,t,r){var n=r(7282)("draft_tree_data_support");e.exports=r(n?1803:3659)},1803(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var i=r(2784),a=r(3885),s=r(2015),c=r(6408),u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var u=n.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,r=e.editorState;if(t.getDirectionMap()!==r.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=r.isInCompositionMode();if(t===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=t.getCurrentContent(),s=r.getCurrentContent(),c=t.getDecorator(),u=r.getDecorator();return o!==i||a!==s||c!==u||r.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,n=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,d=e.editorState,f=e.editorKey,p=e.textDirectionality,h=d.getCurrentContent(),g=d.getSelection(),y=d.mustForceSelection(),m=d.getDecorator(),v=c(d.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var S=w.getKey(),x={blockRenderMap:t,blockRendererFn:r,blockStyleFn:n,contentState:h,customStyleFn:l,customStyleMap:u,decorator:m,editorKey:f,editorState:d,forceSelection:y,selection:g,block:w,direction:p||v.get(S),tree:d.getBlockTree(S)},E=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:S},x)),wrapperTemplate:E,key:S,offsetKey:a.encode(S,0,0)});var _=w.getNextSiblingKey();w=_?h.getBlockForKey(_):null}for(var O=[],C=0;C<b.length;){var k=b[C];if(k.wrapperTemplate){var A=[];do{A.push(b[C].block),C++}while(C<b.length&&b[C].wrapperTemplate===k.wrapperTemplate);var T=s.cloneElement(k.wrapperTemplate,{key:k.key+"-wrap","data-offset-key":k.offsetKey},A);O.push(T)}else O.push(k.block),C++}return s.createElement("div",{"data-contents":"true"},O)},n}(s.Component);e.exports=u},1988(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var i=r(3885),a=r(2015),s=r(8307),c=r(5822),u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.render=function(){var e=this.props,t=e.block,r=e.children,n=e.contentState,u=e.decorator,l=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,h=t.getKey(),g=f.get("leaves"),y=u.getComponentForKey(l),m=u.getPropsForKey(l),v=i.encode(h,parseInt(l,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(b),d);return a.createElement(y,o({},m,{contentState:n,decoratedText:b,dir:w,key:v,entityKey:t.getEntityAt(f.get("start")),offsetKey:v}),r)},n}(a.Component);e.exports=u},2474(e,t,r){var n=r(2395),o=r(9938),i=r(2242),a=r(8372),s=r(9677),c=r(723),u=r(9450),l=r(5389),d=r(3680),f=r(6408),p={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var r=new n(t.nativeEvent.dataTransfer),l=e._latestEditorState,p=function(e,t){var r=null,n=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);r=i.startContainer,n=i.startOffset}else{if(!e.rangeParent)return null;r=e.rangeParent,n=e.rangeOffset}r=f(r),n=f(n);var c=f(a(r));return u(t,c,n,c,n)}(t.nativeEvent,l);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=p){var y=r.getFiles();if(y.length>0){if(e.props.handleDroppedFiles&&d(e.props.handleDroppedFiles(p,y)))return;c(y,function(t){t&&e.update(g(l,p,t))})}else{var m=e._internalDrag?"internal":"external";e.props.handleDrop&&d(e.props.handleDrop(p,r,m))||(e._internalDrag?e.update(function(e,t){var r=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,r,"insert-fragment")}(l,p)):e.update(g(l,p,r.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var r=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(r)}}function g(e,t,r){var n=o.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return i.push(e,n,"insert-fragment")}e.exports=p},7784(e,t,r){var n=r(4134),o=r(3722),i=r(8058),a=r(7141),s=r(3694),c=r(3919),u=r(6127),l=r(4861),d=r(4447),f=r(5091),p=r(8136),h=r(2208),g=r(6207),y=n.isBrowser("Chrome"),m=n.isBrowser("Firefox"),v=y||m?g:function(e){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:d,onInput:f,onKeyDown:p,onPaste:h,onSelect:g,onMouseUp:v,onKeyUp:v};e.exports=b},4576(e,t,r){var n=r(2326).unstable_flushControlled;e.exports=n},5203(e,t,r){var n=r(5228),o=r(6268),i=r(2015),a=r(646),s=r(2623),c=r(4660).setDraftEditorSelection,u=function(e){var t,r;function u(){for(var t,r,n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(n="leaf")in(r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,t}r=e,(t=u).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=u.prototype;return l._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,r=t.block,n=t.start,o=t.text,i=r.getKey(),u=n+o.length;if(e.hasEdgeWithin(i,n,u)){var l=this.leaf;l||a(!1);var d,f=l.firstChild;f||a(!1),f.nodeType===Node.TEXT_NODE?d=f:s(f)?d=l:(d=f.firstChild)||a(!1),c(e,d,i,n,u)}}},l.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},l.componentDidUpdate=function(){this._setSelection()},l.componentDidMount=function(){this._setSelection()},l.render=function(){var e=this,t=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var a=this.props,s=a.customStyleMap,c=a.customStyleFn,u=a.offsetKey,l=a.styleSet,d=l.reduce(function(e,t){var r={},o=s[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(r.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),n(e,o,r)},{});if(c){var f=c(l,t);d=n(d,f)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:d},i.createElement(o,null,r))},u}(i.Component);e.exports=u},4379(e,t,r){var n=r(1988),o=r(5203),i=r(3885),a=r(9404),s=r(2015),c=r(8003),u=(a.List,function(e){var t,r;function a(){return e.apply(this,arguments)||this}return r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a.prototype.render=function(){var e=this.props,t=e.block,r=e.contentState,a=e.customStyleFn,u=e.customStyleMap,l=e.decorator,d=e.direction,f=e.forceSelection,p=e.hasSelection,h=e.selection,g=e.tree,y=t.getKey(),m=t.getText(),v=g.size-1,b=this.props.children||g.map(function(e,c){var g=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,S=b.map(function(e,r){var n=i.encode(y,c,r),l=e.get("start"),d=e.get("end");return s.createElement(o,{key:n,offsetKey:n,block:t,start:l,selection:p?h:null,forceSelection:f,text:m.slice(l,d),styleSet:t.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===v&&r===w})}).toArray();return g&&l?s.createElement(n,{block:t,children:S,contentState:r,decorator:l,decoratorKey:g,direction:d,leafSet:e,text:m,key:c}):S}).toArray();return s.createElement("div",{"data-offset-key":i.encode(y,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},a}(s.Component));e.exports=u},7503(e,t,r){var n=r(2015),o=r(8003),i=function(e){var t,r;function i(){return e.apply(this,arguments)||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return n.createElement("div",{className:t},n.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(n.Component);e.exports=i},6268(e,t,r){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(2015),a=r(4134),s=r(646),c=r(3816),u=a.isBrowser("IE <= 11"),l=function(e){var t,r;function a(t){var r;return o(n(r=e.call(this,t)||this),"_forceFlag",void 0),o(n(r),"_node",void 0),r._forceFlag=!1,r}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=a.prototype;return l.shouldComponentUpdate=function(e){var t=this._node,r=""===e.children;c(t)||s(!1);var n=t;return r?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(n):n.textContent!==e.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}(function(e){return t._node=e}):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);e.exports=l},3334(e){e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},1608(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(5407),i=r(9404),a=r(646),s=r(4809),c=(0,i.Map)(),u=s();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var d={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),d.__getLastCreatedEntityKey()},create:function(e,t,r){return l("DraftEntity.create","contentState.createEntity"),d.__create(e,t,r)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),d.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),d.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,u=s()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),d.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),d.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,r){return d.__add(new o({type:e,mutability:t,data:r||{}}))},__add:function(e){return u=s(),c=c.set(u,e),u},__get:function(e){var t=c.get(e);return t||a(!1),t},__mergeData:function(e,t){var r=d.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},r.getData(),t),i=r.set("data",o);return c=c.set(e,i),i},__replaceData:function(e,t){var r=d.__get(e).set("data",t);return c=c.set(e,r),r}};e.exports=d},5407(e,t,r){var n=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},n}((0,r(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=n},8382(e){e.exports={getRemovalRange:function(e,t,r,n,o){var i=r.split(" ");i=i.map(function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e});for(var a,s=n,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var d=n+r.length,f=c===n,p=u===d;return(!f&&p||f&&!p)&&("forward"===o?u!==d&&u++:c!==n&&c--),{start:c,end:u}}}},7204(e){e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},9938(e,t,r){var n=r(3018),o=r(4092),i=r(6416),a=r(508),s=r(866),c=r(9404),u=r(9127),l=r(3136),d=r(646),f=r(5462),p=r(6044),h=r(4435),g=r(841),y=c.OrderedSet,m={replaceText:function(e,t,r,o,i){var a=p(e,t),s=h(a,t),c=n.create({style:o||y(),entity:i||null});return l(s,s.getSelectionAfter(),r,c)},insertText:function(e,t,r,n,o){return t.isCollapsed()||d(!1),m.replaceText(e,t,r,n,o)},moveText:function(e,t,r){var n=s(e,t),o=m.removeRange(e,t,"backward");return m.replaceWithFragment(o,r,n)},replaceWithFragment:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=p(e,t),i=h(o,t);return u(i,i.getSelectionAfter(),r,n)},removeRange:function(e,t,r){var n,o,i,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(n),s=e.getBlockForKey(o);var c=t.getStartOffset(),u=t.getEndOffset(),l=i.getEntityAt(c),d=s.getEntityAt(u-1);if(n===o&&l&&l===d){var f=a(e.getEntityMap(),i,s,t,r);return h(e,f)}var g=p(e,t);return h(g,t)},splitBlock:function(e,t){var r=p(e,t),n=h(r,t);return g(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return o.add(e,t,r)},removeInlineStyle:function(e,t,r){return o.remove(e,t,r)},setBlockType:function(e,t,r){return f(e,t,function(e){return e.merge({type:r,depth:0})})},setBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:r})})},mergeBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:e.getData().merge(r)})})},applyEntity:function(e,t,r){var n=p(e,t);return i(n,t,r)}};e.exports=m},3885(e){var t="-",r={encode:function(e,r,n){return e+t+r+t+n},decode:function(e){var r=e.split(t).reverse(),n=r[0],o=r[1];return{blockKey:r.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(n,10)}}};e.exports=r},46(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(6840),i=r(5224),a=r(4712),s=r(6991),c=r(9248),u=r(7282),l=r(9404),d=r(1721),f=l.List,p=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,y={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,r){return e.reduce(function(e,o,i){o=d(o);var a=s(),c={key:a,type:r,text:o,characterList:f(p(t,o.length))};if(h&&0!==i){var u=i-1;c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},c,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new g(c)),e},[])}};e.exports=y},1617(e,t,r){var n="['‘’]",o="\\s|(?![_])"+r(7405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+n+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+n+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var r=t?a.exec(e):i.exec(e);return r?r[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},1439(e){var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},2396(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(6991),a=r(646),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},c={fromRawTreeStateToRawState:function(e){var t=e.blocks,r=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var r=[].concat(e).reverse();r.length;){var n=r.pop();t(n);var o=n.children;Array.isArray(o)||a(!1),r=r.concat([].concat(o.reverse()))}}(t,function(e){var t=n({},e);s(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map(function(t){return t.type===e.type?n({},t,{depth:(e.depth||0)+1}):t}))}(e),null!=e.children&&e.children.length>0)||(delete t.children,r.push(t))}),e.blocks=r,n({},e,{blocks:r})):e},fromRawStateToRawTreeState:function(e){var t=[],r=[];return e.blocks.forEach(function(e){var o=s(e),a=e.depth||0,c=n({},e,{children:[]});if(o){var u=r[0];if(null==u&&0===a)t.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(l),1===a?t.push(l):null!=u&&u.children.push(l),l.children.push(c)}else if(u.depth===a-1)u.children.push(c);else{for(;null!=u&&u.depth>=a;)r.shift(),u=r[0];a>0?u.children.push(c):t.push(c)}}else t.push(c)}),n({},e,{blocks:t})}};e.exports=c},2490(e,t,r){r(4594),e.exports={isValidBlock:function(e,t){var r=e.getKey(),n=e.getParentKey();if(null!=n&&!t.get(n).getChildKeys().includes(r))return!1;var o=e.getChildKeys().map(function(e){return t.get(e)});if(!o.every(function(e){return e.getParentKey()===r}))return!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==r)return!1;var a=e.getNextSiblingKey();return(null==a||t.get(a).getPrevSiblingKey()===r)&&!(null!==a&&null!==i&&i===a||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter(function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()});if(1!==t.length)return!1;for(var r=0,n=t.shift().getKey(),o=[];null!=n;){var i=e.get(n),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map(function(t){return e.get(t)}),u=c.find(function(e){return null==e.getPrevSiblingKey()});if(null==u)return!1;n=u.getKey()}else n=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();r++}return r===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every(function(r){return t.isValidBlock(r,e)})&&this.isConnectedTree(e)}}},3914(e,t,r){var n,o=r(1708),i=r(9404),a=r(6408),s=i.OrderedMap,c={getDirectionMap:function(e,t){n?n.reset():n=new o;var r=e.getBlockMap(),c=r.valueSeq().map(function(e){return a(n).getDirection(e.getText())}),u=s(r.keySeq().zip(c));return null!=t&&i.is(t,u)?t:u}};e.exports=c},2242(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(9981),a=r(7656),s=r(3914),c=r(1381),u=r(9404),l=u.OrderedSet,d=u.Record,f=u.Stack,p=u.OrderedMap,h=u.List,g=d({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:f(),selection:null,treeMap:null,undoStack:f()}),y=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,r){return t.createWithContent(a.createFromText(e),r)},t.createWithContent=function(e,r){if(0===e.getBlockMap().count())return t.createEmpty(r);var n=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:f(),redoStack:f(),decorator:r||null,selection:c.createEmpty(n)})},t.create=function(e){var r=e.currentContent,o=n({},e,{treeMap:v(r,e.decorator),directionMap:s.getDirectionMap(r)});return new t(new g(o))},t.fromJS=function(e){return new t(new g(n({},e,{directionMap:null!=e.directionMap?p(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?l(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?f(e.redoStack.map(function(e){return a.fromJS(e)})):e.redoStack,selection:null!=e.selection?new c(e.selection):e.selection,treeMap:null!=e.treeMap?p(e.treeMap).map(function(e){return h(e).map(function(e){return i.fromJS(e)})}):e.treeMap,undoStack:null!=e.undoStack?f(e.undoStack.map(function(e){return a.fromJS(e)})):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,r){return new t(e.getImmutable().withMutations(function(t){var n=t.get("decorator"),o=n;null===r.decorator?o=null:r.decorator&&(o=r.decorator);var a=r.currentContent||e.getCurrentContent();if(o!==n){var s,c=t.get("treeMap");return s=o&&n?function(e,t,r,n,o){return r.merge(t.toSeq().filter(function(t){return n.getDecorations(t,e)!==o.getDecorations(t,e)}).map(function(t){return i.generate(e,t,n)}))}(a,a.getBlockMap(),c,o,n):v(a,o),void t.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,r,n){var o=e.getCurrentContent().set("entityMap",r),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter(function(e,t){return e!==a.get(t)}).map(function(e){return i.generate(o,e,n)}))}(e,a.getBlockMap(),a.getEntityMap(),o)),t.merge(r)}))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,r){return t.set(e,{inlineStyleOverride:r})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),r=this.getSelection();return r.isCollapsed()?function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),o=e.getBlockForKey(r);return n>0?o.getInlineStyleAt(n-1):o.getLength()?o.getInlineStyleAt(0):b(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),o=e.getBlockForKey(r);return n<o.getLength()?o.getInlineStyleAt(n):n>0?o.getInlineStyleAt(n-1):b(e,r)}(t,r)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return m(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},t.moveSelectionToEnd=function(e){var r=e.getCurrentContent().getLastBlock(),n=r.getKey(),o=r.getLength();return t.acceptSelection(e,new c({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var r=t.moveSelectionToEnd(e);return t.forceSelection(r,r.getSelection())},t.push=function(e,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===r)return e;var i=s.getDirectionMap(r,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:r,directionMap:i,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),c=e.getCurrentContent(),u=e.getUndoStack(),l=r;a!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,n)?(u=u.push(c),l=l.set("selectionBefore",a)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(l=l.set("selectionBefore",c.getSelectionBefore()));var d=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var p={currentContent:l,directionMap:i,undoStack:u,redoStack:f(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:d};return t.set(e,p)},t.undo=function(e){if(!e.getAllowUndo())return e;var r=e.getUndoStack(),n=r.peek();if(!n)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(n,e.getDirectionMap());return t.set(e,{currentContent:n,directionMap:i,undoStack:r.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var r=e.getRedoStack(),n=r.peek();if(!n)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(n,e.getDirectionMap());return t.set(e,{currentContent:n,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function m(e,t,r){return y.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(e,t){return e.getBlockMap().map(function(r){return i.generate(e,r,t)}).toOrderedMap()}function b(e,t){var r=e.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}e.exports=y},9414(e,t,r){var n=r(4134),o=r(3174),i=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},6429(){},4637(e,t,r){var n=r(9938),o=r(2242),i=r(286),a=r(6408),s={currentBlockContainsLink:function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===n.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,r){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),r=o.push(e,t,"insert-characters");return o.forceSelection(r,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var r=e.getCurrentContent(),n=t.getStartKey(),i=r.getBlockBefore(n);if(i&&"atomic"===i.getType()){var a=r.getBlockMap().delete(i.getKey()),c=r.merge({blockMap:a,selectionAfter:t});if(c!==r)return o.push(e,c,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var r=e.getCurrentContent(),i=t.getStartKey(),a=r.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=r.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=n.removeRange(r,c,"forward");return u!==r?o.push(e,u,"remove-range"):null},onTab:function(e,t,r){var n=t.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(a),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var l=c.getDepth();if(!e.shiftKey&&l===r)return t;var d=i(s,n,e.shiftKey?-1:1,r);return o.push(t,d,"adjust-depth")},toggleBlockType:function(e,t){var r=e.getSelection(),i=r.getStartKey(),s=r.getEndKey(),c=e.getCurrentContent(),u=r;if(i!==s&&0===r.getEndOffset()){var l=a(c.getBlockBefore(s));s=l.getKey(),u=u.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:s,focusOffset:l.getLength(),isBackward:!1})}var d=c.getBlockMap().skipWhile(function(e,t){return t!==i}).reverse().skipWhile(function(e,t){return t!==s}).some(function(e){return"atomic"===e.getType()});if(d)return e;var f=c.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,n.setBlockType(c,u,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),r=t.getAnchorKey(),n=t.getFocusKey();return t.isCollapsed()||r!==n?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var r=e.getSelection(),i=e.getCurrentInlineStyle();if(r.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?n.removeInlineStyle(s,r,t):n.applyInlineStyle(s,r,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,r){var i=n.applyEntity(e.getCurrentContent(),t,r);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),r=t.getAnchorOffset();if(t.isCollapsed()&&0===r){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),s=i.getBlockBefore(o);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return n.setBlockType(i,t,"unstyled")}return null}};e.exports=s},5170(e,t,r){var n=r(9938),o=r(2242),i=r(866),a=r(6408),s=null,c={cut:function(e){var t=e.getCurrentContent(),r=e.getSelection(),c=null;if(r.isCollapsed()){var u=r.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===r.getAnchorOffset()){var d=t.getKeyAfter(u);if(null==d)return e;c=r.set("focusKey",d).set("focusOffset",0)}else c=r.set("focusOffset",l)}else c=r;c=a(c),s=i(t,c);var f=n.removeRange(t,c,"forward");return f===t?e:o.push(e,f,"remove-range")},paste:function(e){if(!s)return e;var t=n.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},1381(e,t,r){var n=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),o=this.getFocusKey();if(n===o&&n===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=r||t<=a&&a<=r}if(e!==n&&e!==o)return!1;var s=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=s&&r>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},n.createEmpty=function(e){return new n({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},n}((0,r(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},286(e){e.exports=function(e,t,r,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+r;return t=Math.max(0,Math.min(t,n)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},1952(e,t,r){var n=r(3018);e.exports=function(e,t,r,o){for(var i=t,a=e.getCharacterList();i<r;)a=a.set(i,n.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},6416(e,t,r){var n=r(1952),o=r(9404);e.exports=function(e,t,r){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===c}).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map(function(e,t){var o=t===a?s:0,i=t===c?u:e.getLength();return n(e,o,i,r)});return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},7470(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(6840),i=r(5224),a=r(1439),s=r(7862),c=r(702),u=r(646),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var r=t.entityMap,s=[],c={},d={},f=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var n=e.getEntityAt(t),o=a.stringify(n);d[o]||(d[o]=n,r[o]="".concat(f),f++)}),function(e,t,r,a){if(e instanceof o)r.push(l(e,t));else{e instanceof i||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},l(e,t),{children:[]});s?a[s].children.push(c):r.push(c)}}(e,r,s,c)}),{blocks:s,entityMap:r}}(e,t),t=function(e,t){var r=t.blocks,n=t.entityMap,o={};return Object.keys(n).forEach(function(t,r){var n=e.getEntity(a.unstringify(t));o[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:o}}(e,t),t}},4712(e,t,r){var n;function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(3018),s=r(6840),c=r(5224),u=r(3387),l=r(1608),d=r(5324),f=r(8003),p=r(6991),h=r(9248),g=r(7282),y=r(9404),m=y.List,v=y.Map,b=y.OrderedSet,w=r(316),S=r(2623),x=r(5291),E=r(4915),_=g("draft_tree_data_support"),O=new RegExp("\r","g"),C=new RegExp("\n","g"),k=new RegExp("^\n","g"),A=new RegExp(" ","g"),T=new RegExp(" ?","g"),D=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],P=["light","lighter","normal","100","200","300","400"],L=["className","href","rel","target","title"],M=["alt","className","height","src","width"],R=(i(n={},f("public/DraftStyleDefault/depth0"),0),i(n,f("public/DraftStyleDefault/depth1"),1),i(n,f("public/DraftStyleDefault/depth2"),2),i(n,f("public/DraftStyleDefault/depth3"),3),i(n,f("public/DraftStyleDefault/depth4"),4),n),j=v({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),N=function(e){return x(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some(function(r){e.classList.contains(r)&&(t=R[r])}),t},B=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new d(t.href),!0}catch(e){return!1}},U=function(e){if(!E(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},K=function(e,t){if(!x(e))return t;var r=e,n=r.style.fontWeight,o=r.style.fontStyle,i=r.style.textDecoration;return t.withMutations(function(e){I.indexOf(n)>=0?e.add("BOLD"):P.indexOf(n)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})},H=function(e){return"ul"===e||"ol"===e},z=function(){function e(e,t){i(this,"characterList",m()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",l),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(_?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||p(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;H(i)&&(this.wrapper=i,H(s)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(U(o))this._addImgNode(o,t);else if(B(o))this._addAnchorNode(o,r,t);else{var u=t;j.has(i)&&(u=u.add(j.get(i))),u=K(o,u);var l=N(o);null!=l&&(u=u.add(l)),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var d=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!_&&x(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var h=o;this.currentDepth=F(h,this.currentDepth)}var g=p(),y=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),r.push(this._makeBlockConfig({key:g,childConfigs:y,type:c})),this.currentDepth=d,this.wrapper=f}}}return r},t._appendText=function(e,t){var r;this.currentText+=e;var n=a.create({style:t,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(e.length).fill(n))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry(function(e){return null!==e.getEntity()});(t=void 0!==n?Math.min(t,n[0]):t)>(r=void 0!==(n=this.characterList.reverse().findEntry(function(e){return null!==e.getEntity()}))?Math.max(r,e-n[0]):r)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(t,r),this.characterList=this.characterList.slice(t,r))},t._addTextNode=function(e,t){var r=e.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(k,"")).replace(C," ")),this._appendText(r,t)},t._addBreakNode=function(e,t){S(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(E(e)){var r=e,n={};M.forEach(function(e){var t=r.getAttribute(e);t&&(n[e]=t)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",n),g("draftjs_fix_paste_for_img")?"presentation"!==r.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,r){if(w(e)){var n=e,o={};L.forEach(function(e){var t=n.getAttribute(e);t&&(o[e]=t)}),o.url=new d(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),r)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.length-1,n=0;n<=r;n++){var i=e[n];i.parent=t,i.prevSibling=n>0?e[n-1].key:null,i.nextSibling=n<r?e[n+1].key:null,i.children=m(i.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new c(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return m(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var r=t._extractTextFromBlockConfigs(e.childConfigs),n=r.text,i=r.characterList;t.contentBlocks.push(new s(o({},e,{text:e.text+n,characterList:e.characterList.concat(i)})))})},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,r="",n=m(),o=0;o<=t;o++){var i=e[o];r+=i.text,n=n.concat(i.characterList),""!==r&&"unstyled"!==i.type&&(r+="\n",n=n.push(n.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);r+=a.text,n=n.concat(a.characterList)}return{text:r,characterList:n}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(O,"").replace(A," ").replace(T,"").replace(D,""));if(!r)return null;var n=function(e){var t={};return e.mapKeys(function(e,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach(function(r){void 0===t[r]?t[r]=e:"string"==typeof t[r]?t[r]=[t[r],e]:t[r].push(e)})}),v(t)}(t);return new z(n,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(r).getContentBlocks()}},428(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(6840),a=r(5224),s=r(7656),c=r(1608),u=r(2396),l=(r(2490),r(1381)),d=r(803),f=r(2401),p=r(3830),h=r(6991),g=r(7282),y=r(9404),m=r(646),v=g("draft_tree_data_support"),b=y.List,w=y.Map,S=y.OrderedMap,x=function(e,t){var r=e.key,n=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:n||"unstyled",key:r||h(),data:w(o),characterList:E(e,t)}},E=function(e,t){var r=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return d(p(r,i||[]),f(r,a.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return n({},e,{key:t[e.key]})})))},_=function(e){return n({},e,{key:e.key||h()})},O=function(e,t,r){var o=t.map(function(e){return n({},e,{parentRef:r})});return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||m(!1);var t=function(e){var t=e.entityMap,r={};return Object.keys(t).forEach(function(e){var n=t[e],o=n.type,i=n.mutability,a=n.data;r[e]=c.__create(o,i,a||{})}),r}(e),r=function(e,t){var r=e.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),o=v&&!r?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return S(e.map(function(e){var r=new i(x(e,t));return[r.getKey(),r]}))}(r?u.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(_).reduce(function(r,o,i){Array.isArray(o.children)||m(!1);var s=o.children.map(_),c=new a(n({},x(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(s.map(function(e){return e.key}))}));r=r.set(c.getKey(),c);for(var u=O([],s,c);u.length>0;){var l=u.pop(),d=l.parentRef,f=d.getChildKeys(),p=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||m(!1);break}var g=l.children.map(_),y=new a(n({},x(l,t),{parent:d.getKey(),children:b(g.map(function(e){return e.key})),prevSibling:0===p?null:f.get(p-1),nextSibling:p===f.size-1?null:f.get(p+1)}));r=r.set(y.getKey(),y),u=O(u,g,y)}return r},S())}(o,t);return s}(e,t),o=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new s({blockMap:r,entityMap:t,selectionBefore:o,selectionAfter:o})}},803(e,t,r){var n=r(3018),o=r(9404).List;e.exports=function(e,t){var r=e.map(function(e,r){var o=t[r];return n.create({style:e,entity:o})});return o(r)}},2401(e,t,r){var n=r(580).substr;e.exports=function(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var o=n(e,0,t.offset).length,i=o+n(e,t.offset,t.length).length,a=o;a<i;a++)r[a]=t.key}),r}},3830(e,t,r){var n=r(580),o=r(9404).OrderedSet,i=n.substr,a=o();e.exports=function(e,t){var r=Array(e.length).fill(a);return t&&t.forEach(function(t){for(var n=i(e,0,t.offset).length,o=n+i(e,t.offset,t.length).length;n<o;)r[n]=r[n].add(t.style),n++}),r}},1103(e){e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},3722(e,t,r){var n=r(9938),o=r(2242),i=r(4134),a=r(9927),s=r(3680),c=r(7759),u=r(6408),l=r(9765),d=i.isBrowser("Firefox");function f(e,t,r,i,a){var s=n.replaceText(e.getCurrentContent(),e.getSelection(),t,r,i);return o.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e._latestEditorState,n=t.data;if(n)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(n,r,t.timeStamp)))t.preventDefault();else{var i=r.getSelection(),p=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(f(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));var g,y=f(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),m=!1;if(m||(m=c(e._latestCommittedEditorState)),!m){var v=r.getBlockTree(h),b=y.getBlockTree(h);m=v.size!==b.size||v.zip(b).some(function(e){var t=e[0],r=e[1],o=t.get("start"),i=o+(o>=p?n.length:0),a=t.get("end"),s=a+(a>=p?n.length:0),c=r.get("start"),u=r.get("end"),l=r.get("decoratorKey");return t.get("decoratorKey")!==l||t.get("leaves").size!==r.get("leaves").size||i!==c||s!==u||null!=l&&u-c!==a-o})}if(m||(g=n,m=d&&("'"==g||"/"==g)),m||(m=u(y.getDirectionMap()).get(h)!==u(r.getDirectionMap()).get(h)),m)return t.preventDefault(),y=o.set(y,{forceSelection:!0}),void e.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),e._pendingStateFromBeforeInput=y,l(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}},8058(e,t,r){var n=r(2242),o=r(4909),i=r(9758);e.exports=function(e,t){var r=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(r)===r.body){var a=r.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(n.acceptSelection(c,l))}}},7141(e,t,r){var n=r(2242);e.exports=function(e,t){e.setMode("composite"),e.update(n.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},3694(e,t,r){var n=r(1296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(n(e._latestEditorState))}},3919(e,t,r){var n=r(9938),o=r(2242),i=r(2935),a=r(1296),s=r(7392),c=r(4316);e.exports=function(e,t){var r,u=e._latestEditorState,l=u.getSelection(),d=t.target;if(l.isCollapsed())t.preventDefault();else{if(c(d)){var f=d;r=s(i.getScrollParent(f))}var p=a(u);e.setClipboard(p),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(r),e.exitCurrentMode(),e.update(function(e){var t=n.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))},0)}}},6127(e){e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},4861(e){e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},4447(e,t,r){var n=r(2242),o=r(4134);e.exports=function(e,t){var r=e._latestEditorState,i=r.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(n.forceSelection(r,a)):e.update(n.acceptSelection(r,a))}}},5091(e,t,r){var n=r(9938),o=r(3885),i=r(2242),a=r(4134),s=r(1103).notEmptyKey,c=r(8372),u=r(7381),l=r(6408),d=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e.editor.ownerDocument.defaultView.getSelection(),a=r.anchorNode,f=r.isCollapsed,p=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!p){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var y=a.textContent,m=e._latestEditorState,v=l(c(a)),b=o.decode(v),w=b.blockKey,S=b.decoratorKey,x=b.leafKey,E=m.getBlockTree(w).getIn([S,"leaves",x]),_=E.start,O=E.end,C=m.getCurrentContent(),k=C.getBlockForKey(w),A=k.getText().slice(_,O);if(y.endsWith("\n\n")&&(y=y.slice(0,-1)),y!==A){var T,D,I,P,L=m.getSelection(),M=L.merge({anchorOffset:_,focusOffset:O,isBackward:!1}),R=k.getEntityAt(_),j=s(R)?C.getEntity(R):null,N="MUTABLE"===(null!=j?j.getMutability():null),F=N?"spellcheck-change":"apply-entity",B=n.replaceText(C,M,y,k.getInlineStyleAt(_),N?k.getEntityAt(_):null);if(d)T=r.anchorOffset,D=r.focusOffset,P=(I=_+Math.min(T,D))+Math.abs(T-D),T=I,D=P;else{var U=y.length-A.length;I=L.getStartOffset(),P=L.getEndOffset(),T=f?P+U:I,D=P+U}var K=B.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:T,focusOffset:D})});e.update(i.push(m,K,F))}else{var H=t.nativeEvent.inputType;if(H){var z=function(e,t){return"deleteContentBackward"===e?u(t):t}(H,m);if(z!==m)return e.restoreEditorDOM(),void e.update(z)}}}}},8136(e,t,r){var n=r(9938),o=r(2242),i=r(9414),a=r(5852),s=r(5170),c=r(4134),u=r(3680),l=r(8771),d=r(4143),f=r(525),p=r(4071),h=r(5169),g=r(70),y=r(7381),m=r(2383),v=r(5935),b=r(8976),w=i.isOptionKeyCommand,S=c.isBrowser("Chrome");e.exports=function(e,t){var r=t.which,i=e._latestEditorState;function c(r){var n=e.props[r];return!!n&&(n(t),!0)}switch(r){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:S&&w(t)&&t.preventDefault()}var x=e.props.keyBindingFn(t);if(null!=x&&""!==x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(x,i,t.timeStamp))){var E=function(e,t,r){switch(e){case"redo":return o.redo(t);case"delete":return m(t);case"delete-word":return f(t);case"backspace":return y(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return l(t,r);case"split-block":return p(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,i,t);E!==i&&e.update(E)}}else b(t,i,e.update);else if(r===a.SPACE&&S&&w(t)){var _=n.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,_,"insert-characters"))}}},2208(e,t,r){var n=r(5748),o=r(3018),i=r(2395),a=r(9938),s=r(46),c=r(2242),u=r(4637),l=r(9927),d=r(723),f=r(3680),p=r(3676);function h(e,t,r){var n=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n.set("entityMap",r),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var r=new i(t.clipboardData);if(!r.isRichText()){var g=r.getFiles(),y=r.getText();if(g.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(g)))return;return void d(g,function(t){if(t=t||y){var r=e._latestEditorState,i=p(t),d=o.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),f=u.getCurrentBlockType(r),h=s.processText(i,d,f),g=n.createFromArray(h),m=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),g);e.update(c.push(r,m,"insert-fragment"))}})}}var m=[],v=r.getText(),b=r.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(v,b);v=S.text,b=S.html}if(!e.props.handlePastedText||!f(e.props.handlePastedText(v,b,w))){if(v&&(m=p(v)),!e.props.stripPastedStyles){var x,E=e.getClipboard();if(!e.props.formatPastedText&&r.isRichText()&&E){if(-1!==(null===(x=b)||void 0===x?void 0:x.indexOf(e.getEditorKey()))||1===m.length&&1===E.size&&E.first().getText()===v)return void e.update(h(e._latestEditorState,E))}else if(E&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,r){return t.getText()===e[r]})}(m,E))return void e.update(h(e._latestEditorState,E));if(b){var _=s.processHTML(b,e.props.blockRenderMap);if(_){var O=_.contentBlocks,C=_.entityMap;if(O){var k=n.createFromArray(O);return void e.update(h(e._latestEditorState,k,C))}}}e.setClipboard(null)}if(m.length){var A=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),T=u.getCurrentBlockType(w),D=s.processText(m,A,T),I=n.createFromArray(D);e.update(h(e._latestEditorState,I))}}}},6207(e,t,r){var n=r(7204),o=r(2242),i=r(3564),a=r(120);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var r=e.props.editorState,s=a(r,i(e)),c=s.selectionState;c!==r.getSelection()&&(r=s.needsRecovery?o.forceSelection(r,c):o.acceptSelection(r,c),e.update(r))}}},7862(e,t,r){var n=r(1439),o=r(580).strlen;e.exports=function(e,t){var r=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),c=e.getEntityAt(i);r.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[n.stringify(c)])})}),r}},702(e,t,r){var n=r(580),o=r(8227),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),r=t.flatten().toSet().map(function(r){return function(e,t,r){var s=[],c=t.map(function(e){return e.has(r)}).toList();return o(c,i,a,function(t,o){var i=e.getText();s.push({offset:n.strlen(i.slice(0,t)),length:n.strlen(i.slice(t,o)),style:r})}),s}(e,t,r)});return Array.prototype.concat.apply(s,r.toJS())}},5989(e,t,r){var n=r(580),o=r(9677),i=r(5377),a=r(646);function s(e,t){for(var r=1/0,n=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(r=Math.min(r,s.top),n=Math.min(n,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=n&&o-r<t&&i-n<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var r=function(e){var t=getComputedStyle(e),r=o(e),n=r.createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";var i=r.body;i||a(!1),i.appendChild(n);var s=n.getBoundingClientRect();return i.removeChild(n),s.height}(t),u=e.endContainer,l=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),r)&&(u=e.startContainer,l=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var d=u,f=l-1;;){for(var p=d.nodeValue,h=f;h>=0;h--)if(!(null!=p&&h>0&&n.isSurrogatePair(p,h-1))){if(e.setStart(d,h),!s(i(e),r))break;u=d,l=h}if(-1===h||0===d.childNodes.length)break;f=c(d=d.childNodes[h])}return e.setStart(u,l),e}},8372(e,t,r){var n=r(9677),o=r(4453);e.exports=function(e){for(var t=e;t&&t!==n(e).documentElement;){var r=o(t);if(null!=r)return r;t=t.parentNode}return null}},8227(e){e.exports=function(e,t,r,n){if(e.size){var o=0;e.reduce(function(e,i,a){return t(e,i)||(r(e)&&n(o,a),o=a),i}),r(e.last())&&n(o,e.count())}}},6991(e){var t={},r=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return t[e]=!0,e}},508(e,t,r){var n=r(8382),o=r(9311),i=r(646);function a(e,t,r,a,s,c,u){var l=r.getStartOffset(),d=r.getEndOffset(),f=e.__get(s).getMutability(),p=u?l:d;if("MUTABLE"===f)return r;var h=o(t,s).filter(function(e){return p<=e.end&&p>=e.start});1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===f)return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?d=g.end:l=g.start);var y=n.getRemovalRange(l,d,t.getText().slice(g.start,g.end),g.start,a);return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=function(e,t,r,n,o){var i=n.getStartOffset(),s=n.getEndOffset(),c=t.getEntityAt(i),u=r.getEntityAt(s-1);if(!c&&!u)return n;var l=n;if(c&&c===u)l=a(e,t,l,o,c,!0,!0);else if(c&&u){var d=a(e,t,l,o,c,!1,!0),f=a(e,r,l,o,u,!1,!1);l=l.merge({anchorOffset:d.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var p=a(e,t,l,o,c,!1,!0);l=l.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,r,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},3564(e,t,r){var n=r(646),o=r(5291);e.exports=function(e){var t=e.editorContainer;return t||n(!1),o(t.firstChild)||n(!1),t.firstChild}},866(e,t,r){var n=r(3310),o=r(6044);e.exports=function(e,t){var r=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),u=c.keySeq(),l=u.indexOf(r),d=u.indexOf(a)+1;return n(c.slice(l,d).map(function(e,t){var n=e.getText(),o=e.getCharacterList();return r===a?e.merge({text:n.slice(i,s),characterList:o.slice(i,s)}):t===r?e.merge({text:n.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:n.slice(0,s),characterList:o.slice(0,s)}):e}))}},9677(e){e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},7811(e,t,r){var n=r(9414),o=r(5852),i=r(4134),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=n.hasCommandModifier,u=n.isCtrlKeyCommand;function l(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:l(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&a?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},120(e,t,r){var n=r(9215);e.exports=function(e,t){var r=t.ownerDocument.defaultView.getSelection(),o=r.anchorNode,i=r.anchorOffset,a=r.focusNode,s=r.focusOffset;return 0===r.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(e,t,o,i,a,s)}},9215(e,t,r){var n=r(8372),o=r(4453),i=r(9450),a=r(646),s=r(3816),c=r(6408);function u(e,t,r){var i=t,u=n(i);if(null!=u||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,s(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),r>0&&(r=i.childNodes.length)),0===r){var d=null;if(null!=u)d=u;else{var f=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);d=c(o(f))}return{key:d,offset:0}}var p=i.childNodes[r-1],h=null,g=null;if(o(p)){var y=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(p);h=c(o(y)),g=l(y)}else h=c(u),g=l(p);return{key:h,offset:g}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,r,o,a,s){var l=r.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(l&&d)return{selectionState:i(e,c(n(r)),o,c(n(a)),s),needsRecovery:!1};var f=null,p=null,h=!0;return l?(f={key:c(n(r)),offset:o},p=u(t,a,s)):d?(p={key:c(n(a)),offset:s},f=u(t,r,o)):(f=u(t,r,o),p=u(t,a,s),r===a&&o===s&&(h=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:i(e,f.key,f.offset,p.key,p.offset),needsRecovery:h}}},9927(e,t,r){var n=r(1103).notEmptyKey;function o(e,t){return n(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(r=e.getBlockForKey(n).getEntityAt(i-1))!==e.getBlockForKey(n).getEntityAt(i)?null:o(e.getEntityMap(),r):null}var a=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(a);return r=s===c.getLength()?null:c.getEntityAt(s),o(e.getEntityMap(),r)}},1296(e,t,r){var n=r(866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:n(e.getCurrentContent(),t)}},7376(e,t,r){var n=r(5224);e.exports=function(e,t){if(!(e instanceof n))return null;var r=e.getNextSiblingKey();if(r)return r;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},679(e){e.exports=function(e){return Object.keys(e).map(function(t){return e[t]})}},4658(e,t,r){var n=r(5377);e.exports=function(e){var t=n(e),r=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];r=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];r=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(r=Math.min(r,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:r,right:o,bottom:i,left:a,width:o-a,height:i-r}}},5377(e,t,r){var n=r(4134),o=r(646),i=n.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),r=[],n=e.endContainer;null!=n;n=n.parentNode){var i=n===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(r.push(s),i)return r.reverse(),(a=[]).concat.apply(a,r);t.setEndBefore(n)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},9311(e,t,r){var n=r(646);e.exports=function(e,t){var r=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){r.push({start:e,end:t})}),r.length||n(!1),r}},9248(e,t,r){var n=r(4134),o=r(646),i=n.isBrowser("IE <= 9");e.exports=function(e){var t,r=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}},4453(e,t,r){var n=r(3816);e.exports=function e(t){if(n(t)){var r=t,o=r.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<r.childNodes.length;i++){var a=e(r.childNodes[i]);if(a)return a}}return null}},723(e,t,r){var n=r(646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var r=0,a=[];e.forEach(function(s){!function(e,t){if(!globalThis.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var r="";return o.test(e.name)&&(r=e.name.replace(o,"")),void t(r)}var a=new FileReader;a.onload=function(){var e=a.result;"string"!=typeof e&&n(!1),t(e)},a.onerror=function(){t("")},a.readAsText(e)}}(s,function(n){r++,n&&a.push(n.slice(0,5e3)),r==e.length&&t(a.join("\r"))})})}},9450(e,t,r){var n=r(3885),o=r(6408);e.exports=function(e,t,r,i,a){var s=o(e.getSelection());if(!t||!i)return s;var c=n.decode(t),u=c.blockKey,l=e.getBlockTree(u),d=l&&l.getIn([c.decoratorKey,"leaves",c.leafKey]),f=n.decode(i),p=f.blockKey,h=e.getBlockTree(p),g=h&&h.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!d||!g)return s;var y=d.get("start"),m=g.get("start"),v=d?y+r:null,b=g?m+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===v&&s.getFocusKey()===p&&s.getFocusOffset()===b)return s;var w=!1;if(u===p){var S=d.get("end"),x=g.get("end");w=m===y&&x===S?a<r:m<y}else{var E=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===u||e===p}).first();w=E===p}return s.merge({anchorKey:u,anchorOffset:v,focusKey:p,focusOffset:b,isBackward:w})}},894(e,t,r){var n=r(4658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var r=t.getRangeAt(0),o=n(r),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},5389(e){e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},7282(e){e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},9127(e,t,r){var n=r(5748),o=r(5224),i=r(9404),a=r(6269),s=r(646),c=r(3310),u=i.List;e.exports=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var l=e.getBlockMap(),d=c(r),f=t.getStartKey(),p=t.getStartOffset(),h=l.get(f);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===d.size?function(e,t,r,n,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=r.get(o),u=c.getText(),l=c.getCharacterList(),d=o,f=i+n.getText().length,p=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":p=n.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":p=n.getData()}var h=c.getType();u&&"unstyled"===h&&(h=n.getType());var g=c.merge({text:u.slice(0,i)+n.getText()+u.slice(i),characterList:a(l,n.getCharacterList(),i),type:h,data:p});return e.merge({blockMap:r.set(o,g),selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:f,focusKey:d,focusOffset:f,isBackward:!1})})}(e,t,l,d.first(),f,p,i):function(e,t,r,i,a,s){var c=r.first()instanceof o,l=[],d=i.size,f=r.get(a),p=i.first(),h=i.last(),g=h.getLength(),y=h.getKey(),m=c&&(!f.getChildKeys().isEmpty()||!p.getChildKeys().isEmpty());r.forEach(function(e,t){t===a?(m?l.push(e):l.push(function(e,t,r){var n=e.getText(),o=e.getCharacterList(),i=n.slice(0,t),a=o.slice(0,t),s=r.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(m?0:1,d-1).forEach(function(e){return l.push(e)}),l.push(function(e,t,r){var n=e.getText(),o=e.getCharacterList(),i=n.length,a=n.slice(t,i),s=o.slice(t,i),c=r.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):l.push(e)});var v=n.createFromArray(l);return c&&(v=function(e,t,r,n){return e.withMutations(function(t){var o=r.getKey(),i=n.getKey(),a=r.getNextSiblingKey(),s=r.getParentKey(),c=function(e,t){var r=e.getKey(),n=e,o=[];for(t.get(r)&&o.push(r);n&&n.getNextSiblingKey();){var i=n.getNextSiblingKey();if(!i)break;o.push(i),n=t.get(i)}return o}(n,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],n.getNextSiblingKey()),t.setIn([n.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach(function(e){return t.setIn([e,"parent"],s)}),s){var d=e.get(s).getChildKeys(),f=d.indexOf(o)+1,p=d.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],u(p))}})}(v,0,f,p)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:y,anchorOffset:g,focusKey:y,focusOffset:g,isBackward:!1})})}(e,t,l,d,f,p)}},6269(e){e.exports=function(e,t,r){var n=e;if(r===n.count())t.forEach(function(e){n=n.push(e)});else if(0===r)t.reverse().forEach(function(e){n=n.unshift(e)});else{var o=n.slice(0,r),i=n.slice(r);n=o.concat(t,i).toList()}return n}},3136(e,t,r){var n=r(9404),o=r(6269),i=r(646),a=n.Repeat;e.exports=function(e,t,r,n){t.isCollapsed()||i(!1);var s=null;if(null!=r&&(s=r.length),null==s||0===s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),d=c.get(u),f=d.getText(),p=d.merge({text:f.slice(0,l)+r+f.slice(l,d.getLength()),characterList:o(d.getCharacterList(),a(n,s).toList(),l)}),h=l+s;return e.merge({blockMap:c.set(u,p),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},3816(e){e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},3680(e){e.exports=function(e){return"handled"===e||!0===e}},316(e,t,r){var n=r(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"A"===e.nodeName}},2623(e,t,r){var n=r(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"BR"===e.nodeName}},5291(e){e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},4915(e,t,r){var n=r(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"IMG"===e.nodeName}},4316(e){e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},7759(e){e.exports=function(e){var t=e.getSelection(),r=t.getAnchorKey(),n=e.getBlockTree(r),o=t.getStartOffset(),i=!1;return n.some(function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return o===t&&(i=!0,!0)})}),i}},3174(e,t,r){var n=r(5852);e.exports=function(e){return e.which===n.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},8771(e,t,r){var n=r(2242),o=r(5989),i=r(9215),a=r(8488),s=r(5188);e.exports=function(e,t){var r=s(e,function(e){var r=e.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(e,1);var n=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return n=o(n),i(e,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return r===e.getCurrentContent()?e:n.push(e,r,"remove-range")}},4143(e,t,r){var n=r(1617),o=r(2242),i=r(8488),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset();if(0===r)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,r),s=n.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},525(e,t,r){var n=r(1617),o=r(2242),i=r(7800),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(r),s=n.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},4071(e,t,r){var n=r(9938),o=r(2242);e.exports=function(e){var t=n.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},5169(e,t,r){var n=r(2242);e.exports=function(e){var t=e.getSelection(),r=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(r).getLength();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}),forceSelection:!0})}},70(e,t,r){var n=r(2242);e.exports=function(e){var t=e.getSelection(),r=t.getStartKey();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},7381(e,t,r){var n=r(2242),o=r(580),i=r(8488),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},2383(e,t,r){var n=r(2242),o=r(580),i=r(7800),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},5935(e,t,r){var n=r(9938),o=r(2242),i=r(866);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(0===r)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;r===l?(a=t.set("anchorOffset",r-1),s=t):s=(a=t.set("focusOffset",r+1)).set("anchorOffset",r+1);var d=i(u,a),f=n.removeRange(u,a,"backward"),p=f.getSelectionAfter(),h=p.getAnchorOffset()-1,g=p.merge({anchorOffset:h,focusOffset:h}),y=n.replaceWithFragment(f,g,d),m=o.push(e,y,"insert-fragment");return o.acceptSelection(m,s)}},8976(e,t,r){var n=r(2242);e.exports=function(e,t,r){var o=n.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(r(n.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(o)},0)):r(o);else{var i=o.getCurrentContent();r(n.set(o,{nativelyRenderedContent:i}))}}},5462(e,t,r){var n=r(9404).Map;e.exports=function(e,t,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat(n([[i,a.get(i)]])).map(r);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},6059(e,t,r){var n=r(5224),o=r(7376),i=r(9404),a=r(646),s=i.OrderedMap,c=i.List,u=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},l=function(e,t,r,n,o){if(!o)return e;var i="after"===n,a=t.getKey(),s=r.getKey(),l=t.getParentKey(),d=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),p=r.getParentKey(),h=i?r.getNextSiblingKey():s,g=i?s:r.getPrevSiblingKey();return e.withMutations(function(e){u(l,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),u(f,e,function(e){return e.merge({nextSibling:d})}),u(d,e,function(e){return e.merge({prevSibling:f})}),u(h,e,function(e){return e.merge({prevSibling:a})}),u(g,e,function(e){return e.merge({nextSibling:a})}),u(p,e,function(e){var t=e.getChildKeys(),r=t.indexOf(s),n=i?r+1:0!==r?r-1:0,o=t.toArray();return o.splice(n,0,a),e.merge({children:c(o)})}),u(a,e,function(e){return e.merge({nextSibling:h,prevSibling:g,parent:p})})})};e.exports=function(e,t,r,i){"replace"===i&&a(!1);var c=r.getKey(),u=t.getKey();u===c&&a(!1);var d=e.getBlockMap(),f=t instanceof n,p=[t],h=d.delete(u);f&&(p=[],h=d.withMutations(function(e){var r=t.getNextSiblingKey(),n=o(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===u}).takeWhile(function(e){var t=e.getKey(),o=t===u,i=r&&t!==r,a=!r&&e.getParentKey()&&(!n||t!==n);return!!(o||i||a)}).forEach(function(t){p.push(t),e.delete(t.getKey())})}));var g=h.toSeq().takeUntil(function(e){return e===r}),y=h.toSeq().skipUntil(function(e){return e===r}).skip(1),m=p.map(function(e){return[e.getKey(),e]}),v=s();if("before"===i){var b=e.getBlockBefore(c);b&&b.getKey()===t.getKey()&&a(!1),v=g.concat([].concat(m,[[c,r]]),y).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=g.concat([[c,r]].concat(m),y).toOrderedMap()}return e.merge({blockMap:l(v,t,r,i,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},8488(e,t,r){r(4594),e.exports=function(e,t){var r=e.getSelection(),n=e.getCurrentContent(),o=r.getStartKey(),i=r.getStartOffset(),a=o,s=0;if(t>i){var c=n.getKeyBefore(o);null==c?a=o:(a=c,s=n.getBlockForKey(c).getText().length)}else s=i-t;return r.merge({focusKey:a,focusOffset:s,isBackward:!0})}},7800(e,t,r){r(4594),e.exports=function(e,t){var r,n=e.getSelection(),o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})}},3310(e,t,r){var n=r(5224),o=r(6991),i=r(9404).OrderedMap;e.exports=function(e){return e.first()instanceof n?function(e){var t,r={};return i(e.withMutations(function(e){e.forEach(function(n,i){var a=n.getKey(),s=n.getNextSiblingKey(),c=n.getPrevSiblingKey(),u=n.getChildKeys(),l=n.getParentKey(),d=o();if(r[a]=d,s&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],d):e.setIn([a,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(n.getKey()),d))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],r[t.getKey()])),t=e.get(a);u.forEach(function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[r[e.getKey()],e.set("key",r[e.getKey()])]}))}(e):function(e){return i(e.toArray().map(function(e){var t=o();return[t,e.set("key",t)]}))}(e)}},6044(e,t,r){var n=r(3018),o=r(8227),i=r(646);function a(e,t,r){var a=t.getCharacterList(),s=r>0?a.get(r-1):void 0,c=r<a.count()?a.get(r):void 0,u=s?s.getEntity():void 0,l=c?c.getEntity():void 0;if(l&&l===u&&"MUTABLE"!==e.__get(l).getMutability()){for(var d,f=function(e,t,r){var n;return o(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===t},function(e,t){e<=r&&t>=r&&(n={start:e,end:t})}),"object"!=typeof n&&i(!1),n}(a,l,r),p=f.start,h=f.end;p<h;)d=a.get(p),a=a.set(p,n.applyEntity(d,null)),p++;return t.set("characterList",a)}return t}e.exports=function(e,t){var r=e.getBlockMap(),n=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),c=r.get(i),u=a(n,c,s);u!==c&&(o[i]=u);var l=t.getEndKey(),d=t.getEndOffset(),f=r.get(l);i===l&&(f=u);var p=a(n,f,d);return p!==f&&(o[l]=p),Object.keys(o).length?e.merge({blockMap:r.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},4435(e,t,r){var n=r(5224),o=r(7376),i=r(9404),a=(i.List,i.Map),s=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},c=function(e,t){var r=[];if(!e)return r;for(var n=t.get(e);n&&n.getParentKey();){var o=n.getParentKey();o&&r.push(o),n=o?t.get(o):null}return r},u=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getNextSiblingKey();n&&!t.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getPrevSiblingKey();n&&!t.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n};e.exports=function(e,t){if(t.isCollapsed())return e;var r,i=e.getBlockMap(),d=t.getStartKey(),f=t.getStartOffset(),p=t.getEndKey(),h=t.getEndOffset(),g=i.get(d),y=i.get(p),m=g instanceof n,v=[];if(m){var b=y.getChildKeys(),w=c(p,i);y.getNextSiblingKey()&&(v=v.concat(w)),b.isEmpty()||(v=v.concat(w.concat([p]))),v=v.concat(c(o(y,i),i))}r=g===y?function(e,t,r){if(0===t)for(;t<r;)e=e.shift(),t++;else if(r===e.count())for(;r>t;)e=e.pop(),r--;else{var n=e.slice(0,t),o=e.slice(r);e=n.concat(o).toList()}return e}(g.getCharacterList(),f,h):g.getCharacterList().slice(0,f).concat(y.getCharacterList().slice(h));var S=g.merge({text:g.getText().slice(0,f)+y.getText().slice(h),characterList:r}),x=m&&0===f&&0===h&&y.getParentKey()===d&&null==y.getPrevSiblingKey()?a([[d,null]]):i.toSeq().skipUntil(function(e,t){return t===d}).takeUntil(function(e,t){return t===p}).filter(function(e,t){return-1===v.indexOf(t)}).concat(a([[p,null]])).map(function(e,t){return t===d?S:null}),E=i.merge(x).filter(function(e){return!!e});return m&&g!==y&&(E=function(e,t,r,n){return e.withMutations(function(i){if(s(t.getKey(),i,function(e){return e.merge({nextSibling:u(e,i,n),prevSibling:l(e,i,n)})}),s(r.getKey(),i,function(e){return e.merge({nextSibling:u(e,i,n),prevSibling:l(e,i,n)})}),c(t.getKey(),n).forEach(function(e){return s(e,i,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return i.get(e)}),nextSibling:u(e,i,n),prevSibling:l(e,i,n)})})}),s(t.getNextSiblingKey(),i,function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})}),s(t.getPrevSiblingKey(),i,function(e){return e.merge({nextSibling:u(e,i,n)})}),s(r.getNextSiblingKey(),i,function(e){return e.merge({prevSibling:l(e,i,n)})}),s(r.getPrevSiblingKey(),i,function(e){return e.merge({nextSibling:r.getNextSiblingKey()})}),c(r.getKey(),n).forEach(function(e){s(e,i,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return i.get(e)}),nextSibling:u(e,i,n),prevSibling:l(e,i,n)})})}),function(e,t){var r=[];if(!e)return r;for(var n=o(e,t);n&&t.get(n);){var i=t.get(n);r.push(n),n=i.getParentKey()?o(i,t):null}return r}(r,n).forEach(function(e){return s(e,i,function(e){return e.merge({nextSibling:u(e,i,n),prevSibling:l(e,i,n)})})}),null==e.get(t.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===t.getKey()&&null==r.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(r.getKey(),i,function(e){return e.merge({prevSibling:a})}),s(a,i,function(e){return e.merge({nextSibling:r.getKey()})});var d=a?e.get(a):null,f=d?d.getParentKey():null;if(t.getChildKeys().forEach(function(e){s(e,i,function(e){return e.merge({parent:f})})}),null!=f){var p=e.get(f);s(f,i,function(e){return e.merge({children:p.getChildKeys().concat(t.getChildKeys())})})}s(t.getChildKeys().find(function(t){return null===e.get(t).getNextSiblingKey()}),i,function(e){return e.merge({nextSibling:t.getNextSiblingKey()})})}})}(E,g,y,i)),e.merge({blockMap:E,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:f,focusKey:d,focusOffset:f,isBackward:!1})})}},5188(e,t,r){var n=r(9938),o=r(7282)("draft_tree_data_support");e.exports=function(e,t,r){var i=e.getSelection(),a=e.getCurrentContent(),s=i,c=i.getAnchorKey(),u=i.getFocusKey(),l=a.getBlockForKey(c);if(o&&"forward"===r&&c!==u)return a;if(i.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(c).getLength()){var d=a.getBlockForKey(l.nextSibling);if(!d||0===d.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return n.removeRange(a,s,r)}},1721(e){var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},4660(e,t,r){var n=r(3334),o=r(7204),i=r(4134),a=r(4909),s=r(9758),c=r(9677),u=r(646),l=r(3816),d=i.isBrowser("IE");function f(e,t){if(!e)return"[empty]";var r=p(e,t);return r.nodeType===Node.TEXT_NODE?r.textContent:(l(r)||u(!1),r.outerHTML)}function p(e,t){var r=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var n=e.textContent.length;return c(e).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&r.length&&o.setAttribute("data-labels",r.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(p(i[a],t));return o}function h(e,t){for(var r=e,n=r;r;){if(l(r)&&n.hasAttribute("contenteditable"))return f(r,t);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function g(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function y(e,t,r,n){var i=s();if(e.extend&&null!=t&&a(i,t)){r>g(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,r)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(t,function(t){var r=[];return t===i&&r.push("active element"),t===e.anchorNode&&r.push("selection anchor node"),t===e.focusNode&&r.push("selection focus node"),r}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,r),e.addRange(u.cloneRange())}}function m(e,t,r,i){var a=c(t).createRange();if(r>g(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())}),n.handleExtensionCausedError()),a.setStart(t,r),d)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,r,n,o){var i=c(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),u=e.getAnchorKey(),l=e.getAnchorOffset(),d=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward();if(!s.extend&&p){var h=u,g=l;u=d,l=f,d=h,f=g,p=!1}var v=u===r&&n<=l&&o>=l,b=d===r&&n<=f&&o>=f;if(v&&b)return s.removeAllRanges(),m(s,t,l-n,e),void y(s,t,f-n,e);if(p){if(b&&(s.removeAllRanges(),m(s,t,f-n,e)),v){var w=s.focusNode,S=s.focusOffset;s.removeAllRanges(),m(s,t,l-n,e),y(s,w,S,e)}}else v&&(s.removeAllRanges(),m(s,t,l-n,e)),b&&y(s,t,f-n,e)}},addFocusToSelection:y}},841(e,t,r){var n=r(5224),o=r(6991),i=r(9404),a=r(646),s=r(5462),c=i.List,u=i.Map,l=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var r=t.getAnchorKey(),i=e.getBlockMap(),d=i.get(r),f=d.getText();if(!f){var p=d.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return s(e,t,function(e){return e.merge({type:"unstyled",depth:0})})}var h=t.getAnchorOffset(),g=d.getCharacterList(),y=o(),m=d instanceof n,v=d.merge({text:f.slice(0,h),characterList:g.slice(0,h)}),b=v.merge({key:y,text:f.slice(h),characterList:g.slice(h),data:u()}),w=i.toSeq().takeUntil(function(e){return e===d}),S=i.toSeq().skipUntil(function(e){return e===d}).rest(),x=w.concat([[r,v],[y,b]],S).toOrderedMap();return m&&(d.getChildKeys().isEmpty()||a(!1),x=function(e,t,r){return e.withMutations(function(e){var n=t.getKey(),o=r.getKey();l(t.getParentKey(),e,function(e){var t=e.getChildKeys(),r=t.indexOf(n)+1,i=t.toArray();return i.splice(r,0,o),e.merge({children:c(i)})}),l(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:o})}),l(n,e,function(e){return e.merge({nextSibling:o})}),l(o,e,function(e){return e.merge({prevSibling:n})})})}(x,v,b)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})}},3676(e){var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},4809(e){e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}},7007(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,a,u;if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function f(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=h(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2395(e,t,r){var n=r(4886),o=r(1864),i=r(9395),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return s[e]})},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.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(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.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 e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),r=0;r<t.length;r++){var o=t[r].type;if(!n.isImage(o))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(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=u},5852(e){e.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}},4886(e){var t={isImage:function(e){return"image"===r(e)[0]},isJpeg:function(e){var n=r(e);return t.isImage(e)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(e){return e.split("/")}e.exports=t},3529(e){function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollTop||r.documentElement.scrollTop:e.scrollTop},setTop:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollTop=n.documentElement.scrollTop=r:e.scrollTop=r},getLeft:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollLeft||r.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:e.scrollLeft=r}};e.exports=r},2935(e,t,r){function n(e,t){var r=o.get(e,t);return"auto"===r||"scroll"===r}var o={get:r(6892),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},7405(e){e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},5324(e){var t=function(){function e(e){var t,r;r=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},8307(e,t,r){var n=r(5822),o=r(646),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?n.NEUTRAL:c.exec(t)?n.RTL:n.LTR}function d(e,t){if(t=t||n.NEUTRAL,!e.length)return t;var r=l(e);return r===n.NEUTRAL?t:r}function f(e,t){return t||(t=n.getGlobalDir()),n.isStrong(t)||o(!1),d(e,t)}var p={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:d,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===n.LTR},isDirectionRTL:function(e,t){return f(e,t)===n.RTL}};e.exports=p},5822(e,t,r){var n=r(646),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function s(e){return a(e)||n(!1),e===o?"ltr":"rtl"}function c(e){i=e}var u={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||n(!1),a(t)||n(!1),e===t?null:s(e)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}};e.exports=u},1708(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(8307),i=r(5822),a=r(646),s=function(){function e(e){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},580(e,t,r){var n=r(646),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function c(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!a(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var o=0;if(t>0){for(;t>0&&o<n;t--)o+=s(e,o);if(o>=n)return""}else if(t<0){for(o=n;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var i=n;if(r<n)for(i=o;r>0&&i<n;r--)i+=s(e,i);return e.substring(o,i)}var u={getCodePoints:function(e){for(var t=[],r=0;r<e.length;r+=s(e,r))t.push(e.codePointAt(r));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||n(!1),t+1===e.length)return!1;var r=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=r&&r<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,r=0;r<e.length;r+=s(e,r))t++;return t},substring:function(e,t,r){(t=t||0)<0&&(t=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-t);return c(e,t=t<r?t:r,n)},substr:c};e.exports=u},4134(e,t,r){var n=r(4534),o=r(953),i=r(3731),a=r(4793);function s(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var i=r.slice(e.length);return!!t&&(i=n?n(i):i,o.contains(i,t))}function c(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(n.browserArchitecture,null,e)},isDevice:function(e){return s(n.deviceName,null,e)},isEngine:function(e){return s(n.engineName,n.engineVersion,e)},isPlatform:function(e){return s(n.platformName,n.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(n.platformArchitecture,null,e)}};e.exports=i(u,a)},4534(e,t,r){var n,o="Unknown",i=(new(r(7232))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(n=i.os.name,{"Mac OS":"Mac OS X"}[n]||n||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};e.exports=s},953(e,t,r){var n=r(646),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){if(""===(e=e.trim()))return!0;var r=t.split(o),n=f(e),i=n.modifier,a=n.rangeComponents;switch(i){case"<":return l(r,a);case"<=":return function(e,t){var r=v(e,t);return-1===r||0===r}(r,a);case">=":return d(r,a);case">":return function(e,t){return 1===v(e,t)}(r,a);case"~":case"~>":return function(e,t){var r=t.slice(),n=t.slice();n.length>1&&n.pop();var o=n.length-1,i=parseInt(n[o],10);return p(i)&&(n[o]=i+1+""),d(e,r)&&l(e,n)}(r,a);default:return function(e,t){return 0===v(e,t)}(r,a)}}function l(e,t){return-1===v(e,t)}function d(e,t){var r=v(e,t);return 1===r||0===r}function f(e){var t=e.split(o),r=t[0].match(s);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function p(e){return!isNaN(e)&&isFinite(e)}function h(e){return!f(e).modifier}function g(e,t){for(var r=e.length;r<t;r++)e[r]="0"}function y(e,t){var r=e.match(c)[1],n=t.match(c)[1],o=parseInt(r,10),i=parseInt(n,10);return p(o)&&p(i)&&o!==i?m(o,i):m(e,t)}function m(e,t){return typeof e!=typeof t&&n(!1),e>t?1:e<t?-1:0}function v(e,t){for(var r=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var r=0;r<t.length;r++){var n=t[r].match(/^[x*]$/i);if(n&&(t[r]=e[r]="0","*"===n[0]&&r===t.length-1))for(var o=r;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),n=r[0],o=r[1],i=0;i<o.length;i++){var a=y(n[i],o[i]);if(a)return a}return 0}var b={contains:function(e,t){return function(e,t){var r=e.split(i);return r.length>1?r.some(function(e){return b.contains(e,t)}):function(e,t){var r=e.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return u(r[0],t);var o=r[0],i=r[1];return h(o)&&h(i)||n(!1),u(">="+o,t)&&u("<="+i,t)}(e=r[0].trim(),t)}(e.trim(),t.trim())}};e.exports=b},8748(e){var t=/-(.)/g;e.exports=function(e){return e.replace(t,function(e,t){return t.toUpperCase()})}},4909(e,t,r){var n=r(5423);e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}},1864(e,t,r){var n=r(646);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&n(!1),"number"!=typeof t&&n(!1),0===t||t-1 in e||n(!1),"function"==typeof e.callee&&n(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}(e):[e]}},8003(e){function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},9395(e){function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},9758(e){e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},9824(e){var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},8527(e,t,r){var n=r(7078);e.exports=function(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},7078(e,t,r){var n=r(4909);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!n(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}},7392(e,t,r){var n=r(9824),o=r(7458);e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,s)),r}},6892(e,t,r){var n=r(8748),o=r(3998);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null)))return i(r.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null))return i(r.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):i(e.style&&e.style[n(t)])}},7458(e){e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},1401(e){function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function n(){return{width:window.innerWidth||t(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:t(),height:r()}},e.exports=n},3998(e){var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},646(e){e.exports=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,function(){return String(n[a++])}))).name="Invariant Violation"}throw i.framesToPop=1,i}}},5504(e){e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},5423(e,t,r){var n=r(5504);e.exports=function(e){return n(e)&&3==e.nodeType}},798(e){e.exports=function(e){var t=e||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var o=arguments[n];o&&(t=(t?t+" ":"")+o)}return t}},3731(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,r,n){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=r.call(n,e[i],i,e));return o}},4793(e){e.exports=function(e){var t={};return function(r){return t.hasOwnProperty(r)||(t[r]=e.call(this,r)),t[r]}}},6408(e){e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},9765(e,t,r){r(2791),e.exports=globalThis.setImmediate},4594(e,t,r){var n=r(9395);e.exports=n},1894(e){e.exports="object"==typeof self?self.FormData:window.FormData},4146(e,t,r){var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);d&&(a=a.concat(d(r)));for(var s=c(t),g=c(r),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||n&&n[m]||g&&g[m]||s&&s[m])){var v=f(r,m);try{u(t,m,v)}catch(e){}}}}return t}},9404(e){e.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return a(e)?e:z(e)}function n(e){return s(e)?e:V(e)}function o(e){return c(e)?e:q(e)}function i(e){return a(e)&&!u(e)?e:G(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function c(e){return!(!e||!e[p])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(n,r),t(o,r),t(i,r),r.isIterable=a,r.isKeyed=s,r.isIndexed=c,r.isAssociative=u,r.isOrdered=l,r.Keyed=n,r.Indexed=o,r.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=32,m=31,v={},b={value:!1},w={value:!1};function S(e){return e.value=!1,e}function x(e){e&&(e.value=!0)}function E(){}function _(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),o=0;o<r;o++)n[o]=e[o+t];return n}function O(e){return void 0===e.size&&(e.size=e.__iterate(k)),e.size}function C(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?O(e)+t:t}function k(){return!0}function A(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function T(e,t){return I(e,t,0)}function D(e,t){return I(e,t,t)}function I(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var P="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",M=P||L;function R(e){this.next=e}function j(e,t,r,n){var o=0===e?t:1===e?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function N(){return{value:void 0,done:!0}}function F(e){return!!K(e)}function B(e){return e&&"function"==typeof e.next}function U(e){var t=K(e);return t&&t.call(e)}function K(e){var t=e&&(P&&e[P]||e[L]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null==e?re():a(e)?e.toSeq():function(e){var t=ie(e)||"object"==typeof e&&new J(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function V(e){return null==e?re().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():ne(e)}function q(e){return null==e?re():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function G(e){return(null==e?re():a(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[M]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},z.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(V,z),V.prototype.toKeyedSeq=function(){return this},t(q,z),q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},q.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(G,z),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},z.isSeq=te,z.Keyed=V,z.Set=G,z.Indexed=q;var W,$,Y,X="@@__IMMUTABLE_SEQ__@@";function Z(e){this._array=e,this.size=e.length}function J(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Q(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[X])}function re(){return W||(W=new Z([]))}function ne(e){var t=Array.isArray(e)?new Z(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():F(e)?new Q(e).fromEntrySeq():"object"==typeof e?new J(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ie(e){return H(e)?new Z(e):B(e)?new ee(e):F(e)?new Q(e):void 0}function ae(e,t,r,n){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[r?i-a:a];if(!1===t(s[1],n?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,r)}function se(e,t,r,n){var o=e._cache;if(o){var i=o.length-1,a=0;return new R(function(){var e=o[r?i-a:a];return a++>i?{value:void 0,done:!0}:j(t,n?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,r)}function ce(e,t){return t?ue(t,e,"",{"":e}):le(e)}function ue(e,t,r,n){return Array.isArray(t)?e.call(n,r,q(t).map(function(r,n){return ue(e,r,n,t)})):de(t)?e.call(n,r,V(t).map(function(r,n){return ue(e,r,n,t)})):t}function le(e){return Array.isArray(e)?q(e).map(le).toList():de(e)?V(e).map(le).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function fe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function pe(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!u(e);if(l(e)){var n=e.entries();return t.every(function(e,t){var o=n.next().value;return o&&fe(o[1],e)&&(r||fe(o[0],t))})&&n.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,f=t.__iterate(function(t,n){if(r?!e.has(t):o?!fe(t,e.get(n,v)):!fe(e.get(n,v),t))return d=!1,!1});return d&&e.size===f}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ge(e,t){if(!e)throw new Error(t)}function ye(e,t,r){if(!(this instanceof ye))return new ye(e,t,r);if(ge(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),t<e&&(r=-r),this._start=e,this._end=t,this._step=r,this.size=Math.max(0,Math.ceil((t-e)/r-1)+1),0===this.size){if(Y)return Y;Y=this}}function me(){throw TypeError("Abstract")}function ve(){}function be(){}function we(){}z.prototype[X]=!0,t(Z,q),Z.prototype.get=function(e,t){return this.has(e)?this._array[C(this,e)]:t},Z.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length-1,o=0;o<=n;o++)if(!1===e(r[t?n-o:o],o,this))return o+1;return o},Z.prototype.__iterator=function(e,t){var r=this._array,n=r.length-1,o=0;return new R(function(){return o>n?{value:void 0,done:!0}:j(e,o,r[t?n-o++:o++])})},t(J,V),J.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},J.prototype.has=function(e){return this._object.hasOwnProperty(e)},J.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,o=n.length-1,i=0;i<=o;i++){var a=n[t?o-i:i];if(!1===e(r[a],a,this))return i+1}return i},J.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,o=n.length-1,i=0;return new R(function(){var a=n[t?o-i:i];return i++>o?{value:void 0,done:!0}:j(e,a,r[a])})},J.prototype[h]=!0,t(Q,q),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=U(this._iterable),n=0;if(B(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,n++,this););return n},Q.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=U(this._iterable);if(!B(r))return new R(N);var n=0;return new R(function(){var t=r.next();return t.done?t:j(e,n++,t.value)})},t(ee,q),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(r=n.next()).done;){var a=r.value;if(o[i]=a,!1===e(a,i++,this))break}return i},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,o=0;return new R(function(){if(o>=n.length){var t=r.next();if(t.done)return t;n[o]=t.value}return j(e,o,n[o++])})},t(he,q),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return fe(this._value,e)},he.prototype.slice=function(e,t){var r=this.size;return A(e,t,r)?this:new he(this._value,D(t,r)-T(e,r))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return fe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return fe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++)if(!1===e(this._value,r,this))return r+1;return r},he.prototype.__iterator=function(e,t){var r=this,n=0;return new R(function(){return n<r.size?j(e,n++,r._value):{value:void 0,done:!0}})},he.prototype.equals=function(e){return e instanceof he?fe(this._value,e._value):pe(e)},t(ye,q),ye.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ye.prototype.get=function(e,t){return this.has(e)?this._start+C(this,e)*this._step:t},ye.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ye.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=D(t,this.size))<=e?new ye(0,0):new ye(this.get(e,this._end),this.get(t,this._end),this._step))},ye.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var r=t/this._step;if(r>=0&&r<this.size)return r}return-1},ye.prototype.lastIndexOf=function(e){return this.indexOf(e)},ye.prototype.__iterate=function(e,t){for(var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;i<=r;i++){if(!1===e(o,i,this))return i+1;o+=t?-n:n}return i},ye.prototype.__iterator=function(e,t){var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;return new R(function(){var a=o;return o+=t?-n:n,i>r?{value:void 0,done:!0}:j(e,i++,a)})},ye.prototype.equals=function(e){return e instanceof ye?this._start===e._start&&this._end===e._end&&this._step===e._step:pe(this,e)},t(me,r),t(ve,me),t(be,me),t(we,me),me.Keyed=ve,me.Indexed=be,me.Set=we;var Se="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Ee(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return xe(r)}if("string"===t)return e.length>Le?function(e){var t=je[e];return void 0===t&&(t=_e(e),Re===Me&&(Re=0,je={}),Re++,je[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(De&&void 0!==(t=Te.get(e)))return t;if(void 0!==(t=e[Pe]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pe]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ie,1073741824&Ie&&(Ie=0),De)Te.set(e,t);else{if(void 0!==ke&&!1===ke(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Pe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Pe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Pe]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return xe(t)}var Oe=(1048576*Math.random()|1)%1048576||40503;function Ce(e){if("string"!=typeof e)return Ee(e);for(var t=0,r=0;r<e.length;r++)t=Oe*t+e.charCodeAt(r)|0;return t}var ke=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Te,De="function"==typeof WeakMap;De&&(Te=new WeakMap);var Ie=0,Pe="__immutablehash__";"function"==typeof Symbol&&(Pe=Symbol(Pe));var Le=16,Me=255,Re=0,je={};function Ne(e){ge(e!==1/0,"Cannot perform this action with an infinite size.")}function Fe(e){return null==e?Je():Be(e)&&!l(e)?e:Je().withMutations(function(t){var r=n(e);Ne(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function Be(e){return!(!e||!e[Ke])}t(Fe,ve),Fe.of=function(){var t=e.call(arguments,0);return Je().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])}})},Fe.prototype.toString=function(){return this.__toString("Map {","}")},Fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Fe.prototype.set=function(e,t){return Qe(this,e,t)},Fe.prototype.setIn=function(e,t){return this.updateIn(e,v,function(){return t})},Fe.prototype.remove=function(e){return Qe(this,e,v)},Fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return v})},Fe.prototype.update=function(e,t,r){return 1===arguments.length?e(this):this.updateIn([e],t,r)},Fe.prototype.updateIn=function(e,t,r){r||(r=t,t=void 0);var n=st(this,sr(e),t,r);return n===v?void 0:n},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Je()},Fe.prototype.merge=function(){return nt(this,void 0,arguments)},Fe.prototype.mergeWith=function(t){return nt(this,t,e.call(arguments,1))},Fe.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Je(),function(e){return"function"==typeof e.merge?e.merge.apply(e,r):r[r.length-1]})},Fe.prototype.mergeDeep=function(){return nt(this,ot,arguments)},Fe.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return nt(this,it(t),r)},Fe.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Je(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,r):r[r.length-1]})},Fe.prototype.sort=function(e){return Mt(Xt(this,e))},Fe.prototype.sortBy=function(e,t){return Mt(Xt(this,t,e))},Fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},Fe.prototype.asImmutable=function(){return this.__ensureOwner()},Fe.prototype.wasAltered=function(){return this.__altered},Fe.prototype.__iterator=function(e,t){return new $e(this,e,t)},Fe.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate(function(t){return n++,e(t[1],t[0],r)},t),n},Fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ze(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Fe.isMap=Be;var Ue,Ke="@@__IMMUTABLE_MAP__@@",He=Fe.prototype;function ze(e,t){this.ownerID=e,this.entries=t}function Ve(e,t,r){this.ownerID=e,this.bitmap=t,this.nodes=r}function qe(e,t,r){this.ownerID=e,this.count=t,this.nodes=r}function Ge(e,t,r){this.ownerID=e,this.keyHash=t,this.entries=r,this._index=void 0}function We(e,t,r){this.ownerID=e,this.keyHash=t,this.entry=r}function $e(e,t,r){this._type=t,this._reverse=r,this._stack=e._root&&Xe(e._root)}function Ye(e,t){return j(e,t[0],t[1])}function Xe(e,t){return{node:e,index:0,__prev:t}}function Ze(e,t,r,n){var o=Object.create(He);return o.size=e,o._root=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Je(){return Ue||(Ue=Ze(0))}function Qe(e,t,r){var n,o;if(e._root){var i=S(b),a=S(w);if(n=et(e._root,e.__ownerID,0,void 0,t,r,i,a),!a.value)return e;o=e.size+(i.value?r===v?-1:1:0)}else{if(r===v)return e;o=1,n=new ze(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=o,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?Ze(o,n):Je()}function et(e,t,r,n,o,i,a,s){return e?e.update(t,r,n,o,i,a,s):i===v?e:(x(s),x(a),new We(t,n,[o,i]))}function tt(e){return e.constructor===We||e.constructor===Ge}function rt(e,t,r,n,o){if(e.keyHash===n)return new Ge(t,n,[e.entry,o]);var i,a=(0===r?e.keyHash:e.keyHash>>>r)&m,s=(0===r?n:n>>>r)&m;return new Ve(t,1<<a|1<<s,a===s?[rt(e,t,r+5,n,o)]:(i=new We(t,n,o),a<s?[e,i]:[i,e]))}function nt(e,t,r){for(var o=[],i=0;i<r.length;i++){var s=r[i],c=n(s);a(s)||(c=c.map(function(e){return ce(e)})),o.push(c)}return at(e,t,o)}function ot(e,t,r){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):fe(e,t)?e:t}function it(e){return function(t,r,n){if(t&&t.mergeDeepWith&&a(r))return t.mergeDeepWith(e,r);var o=e(t,r,n);return fe(t,o)?t:o}}function at(e,t,r){return r=r.filter(function(e){return 0!==e.size}),0===r.length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var n=t?function(r,n){e.update(n,v,function(e){return e===v?r:t(e,r,n)})}:function(t,r){e.set(r,t)},o=0;o<r.length;o++)r[o].forEach(n)}):e.constructor(r[0])}function st(e,t,r,n){var o=e===v,i=t.next();if(i.done){var a=o?r:e,s=n(a);return s===a?e:s}ge(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?v:e.get(c,v),l=st(u,t,r,n);return l===u?e:l===v?e.remove(c):(o?Je():e).set(c,l)}function ct(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function ut(e,t,r,n){var o=n?e:_(e);return o[t]=r,o}He[Ke]=!0,He[g]=He.remove,He.removeIn=He.deleteIn,ze.prototype.get=function(e,t,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(fe(r,o[i][0]))return o[i][1];return n},ze.prototype.update=function(e,t,r,n,o,i,a){for(var s=o===v,c=this.entries,u=0,l=c.length;u<l&&!fe(n,c[u][0]);u++);var d=u<l;if(d?c[u][1]===o:s)return this;if(x(a),(s||!d)&&x(i),!s||1!==c.length){if(!d&&!s&&c.length>=lt)return function(e,t,r,n){e||(e=new E);for(var o=new We(e,Ee(r),[r,n]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,c,n,o);var f=e&&e===this.ownerID,p=f?c:_(c);return d?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[n,o]:p.push([n,o]),f?(this.entries=p,this):new ze(e,p)}},Ve.prototype.get=function(e,t,r,n){void 0===t&&(t=Ee(r));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0===(i&o)?n:this.nodes[ct(i&o-1)].get(e+5,t,r,n)},Ve.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=(0===t?r:r>>>t)&m,c=1<<s,u=this.bitmap,l=0!==(u&c);if(!l&&o===v)return this;var d=ct(u&c-1),f=this.nodes,p=l?f[d]:void 0,h=et(p,e,t+5,r,n,o,i,a);if(h===p)return this;if(!l&&h&&f.length>=dt)return function(e,t,r,n,o){for(var i=0,a=new Array(y),s=0;0!==r;s++,r>>>=1)a[s]=1&r?t[i++]:void 0;return a[n]=o,new qe(e,i+1,a)}(e,f,u,s,h);if(l&&!h&&2===f.length&&tt(f[1^d]))return f[1^d];if(l&&h&&1===f.length&&tt(h))return h;var g=e&&e===this.ownerID,b=l?h?u:u^c:u|c,w=l?h?ut(f,d,h,g):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var o=new Array(n),i=0,a=0;a<n;a++)a===t&&(i=1),o[a]=e[a+i];return o}(f,d,g):function(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=r,a=-1):i[s]=e[s+a];return i}(f,d,h,g);return g?(this.bitmap=b,this.nodes=w,this):new Ve(e,b,w)},qe.prototype.get=function(e,t,r,n){void 0===t&&(t=Ee(r));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+5,t,r,n):n},qe.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=(0===t?r:r>>>t)&m,c=o===v,u=this.nodes,l=u[s];if(c&&!l)return this;var d=et(l,e,t+5,r,n,o,i,a);if(d===l)return this;var f=this.count;if(l){if(!d&&--f<ft)return function(e,t,r,n){for(var o=0,i=0,a=new Array(r),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==n&&(o|=c,a[i++]=l)}return new Ve(e,o,a)}(e,u,f,s)}else f++;var p=e&&e===this.ownerID,h=ut(u,s,d,p);return p?(this.count=f,this.nodes=h,this):new qe(e,f,h)},Ge.prototype._positionOf=function(e,t){var r=this.entries,n=this._index;if(void 0===n&&t&&r.length>=pt&&(n=this._buildIndex()),void 0!==n){var o=n[Ce(e)];if(void 0!==o)for(var i=0;i<o.length;i++){var a=o[i];if(fe(e,r[a][0]))return a}return-1}for(var s=0,c=r.length;s<c;s++)if(fe(e,r[s][0]))return s;return-1},Ge.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,r=0,n=t.length;r<n;r++){var o=Ce(t[r][0]),i=e[o];void 0!==i?i.push(r):e[o]=[r]}return this._index=e,e},Ge.prototype.get=function(e,t,r,n){var o=this._positionOf(r,!0);return-1===o?n:this.entries[o][1]},Ge.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=o===v;if(r!==this.keyHash)return s?this:(x(a),x(i),rt(this,e,t,r,[n,o]));var c=this.entries,u=c.length,l=e&&e===this.ownerID,d=this._positionOf(n,l),f=-1===d?u:d,p=-1!==d;if(p?c[f][1]===o:s)return this;if(x(a),(s||!p)&&x(i),s&&2===u)return new We(e,this.keyHash,c[1^f]);var h=l?c:_(c);if(p)s?(f===u-1?h.pop():h[f]=h.pop(),l&&(this._index=void 0)):h[f]=[n,o];else if(h.push([n,o]),l&&void 0!==this._index){var g=Ce(n),y=this._index[g];void 0!==y?y.push(u):this._index[g]=[u]}return l?(this.entries=h,this):new Ge(e,this.keyHash,h)},We.prototype.get=function(e,t,r,n){return fe(r,this.entry[0])?this.entry[1]:n},We.prototype.update=function(e,t,r,n,o,i,a){var s=o===v,c=fe(n,this.entry[0]);return(c?o===this.entry[1]:s)?this:(x(a),s?void x(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new We(e,this.keyHash,[n,o]):(x(i),rt(this,e,t,Ee(n),[n,o])))},ze.prototype.iterate=Ge.prototype.iterate=function(e,t){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(!1===e(r[t?o-n:n]))return!1},Ve.prototype.iterate=qe.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[t?o-n:n];if(i&&!1===i.iterate(e,t))return!1}},We.prototype.iterate=function(e,t){return e(this.entry)},t($e,R),$e.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var r,n=t.node,o=t.index++;if(n.entry){if(0===o)return Ye(e,n.entry)}else if(n.entries){if(o<=(r=n.entries.length-1))return Ye(e,n.entries[this._reverse?r-o:o])}else if(o<=(r=n.nodes.length-1)){var i=n.nodes[this._reverse?r-o:o];if(i){if(i.entry)return Ye(e,i.entry);t=this._stack=Xe(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var lt=8,dt=16,ft=8,pt=16;function ht(e){var t=Et();if(null==e)return t;if(gt(e))return e;var r=o(e),n=r.size;return 0===n?t:(Ne(n),n>0&&n<y?xt(0,n,5,null,new vt(r.toArray())):t.withMutations(function(e){e.setSize(n),r.forEach(function(t,r){return e.set(r,t)})}))}function gt(e){return!(!e||!e[yt])}t(ht,be),ht.of=function(){return this(arguments)},ht.prototype.toString=function(){return this.__toString("List [","]")},ht.prototype.get=function(e,t){if((e=C(this,e))>=0&&e<this.size){var r=Ct(this,e+=this._origin);return r&&r.array[e&m]}return t},ht.prototype.set=function(e,t){return function(e,t,r){if((t=C(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?At(e,t).set(0,r):At(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=S(w);return t>=Dt(e._capacity)?n=_t(n,e.__ownerID,0,t,r,i):o=_t(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):xt(e._origin,e._capacity,e._level,o,n):e}(this,e,t)},ht.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ht.prototype.insert=function(e,t){return this.splice(e,0,t)},ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},ht.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){At(r,0,t+e.length);for(var n=0;n<e.length;n++)r.set(t+n,e[n])})},ht.prototype.pop=function(){return At(this,0,-1)},ht.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){At(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])})},ht.prototype.shift=function(){return At(this,1)},ht.prototype.merge=function(){return Tt(this,void 0,arguments)},ht.prototype.mergeWith=function(t){return Tt(this,t,e.call(arguments,1))},ht.prototype.mergeDeep=function(){return Tt(this,ot,arguments)},ht.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return Tt(this,it(t),r)},ht.prototype.setSize=function(e){return At(this,0,e)},ht.prototype.slice=function(e,t){var r=this.size;return A(e,t,r)?this:At(this,T(e,r),D(t,r))},ht.prototype.__iterator=function(e,t){var r=0,n=St(this,t);return new R(function(){var t=n();return t===wt?{value:void 0,done:!0}:j(e,r++,t)})},ht.prototype.__iterate=function(e,t){for(var r,n=0,o=St(this,t);(r=o())!==wt&&!1!==e(r,n++,this););return n},ht.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},ht.isList=gt;var yt="@@__IMMUTABLE_LIST__@@",mt=ht.prototype;function vt(e,t){this.array=e,this.ownerID=t}mt[yt]=!0,mt[g]=mt.remove,mt.setIn=He.setIn,mt.deleteIn=mt.removeIn=He.removeIn,mt.update=He.update,mt.updateIn=He.updateIn,mt.mergeIn=He.mergeIn,mt.mergeDeepIn=He.mergeDeepIn,mt.withMutations=He.withMutations,mt.asMutable=He.asMutable,mt.asImmutable=He.asImmutable,mt.wasAltered=He.wasAltered,vt.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:0===this.array.length)return this;var n=r>>>t&m;if(n>=this.array.length)return new vt([],e);var o,i=0===n;if(t>0){var a=this.array[n];if((o=a&&a.removeBefore(e,t-5,r))===a&&i)return this}if(i&&!o)return this;var s=Ot(this,e);if(!i)for(var c=0;c<n;c++)s.array[c]=void 0;return o&&(s.array[n]=o),s},vt.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||0===this.array.length)return this;var n,o=r-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((n=i&&i.removeAfter(e,t-5,r))===i&&o===this.array.length-1)return this}var a=Ot(this,e);return a.array.splice(o+1),n&&(a.array[o]=n),a};var bt,wt={};function St(e,t){var r=e._origin,n=e._capacity,o=Dt(n),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>r?0:r-a,u=n-a;return u>y&&(u=y),function(){if(c===u)return wt;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>r?0:r-i>>o,l=1+(n-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var e=s();if(e!==wt)return e;s=null}if(u===l)return wt;var r=t?--l:u++;s=a(c&&c[r],o-5,i+(r<<o))}}}(e,s,c)}}function xt(e,t,r,n,o,i,a){var s=Object.create(mt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=r,s._root=n,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Et(){return bt||(bt=xt(0,0,5))}function _t(e,t,r,n,o,i){var a,s=n>>>r&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(r>0){var u=e&&e.array[s],l=_t(u,t,r-5,n,o,i);return l===u?e:((a=Ot(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(x(i),a=Ot(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Ot(e,t){return t&&e&&t===e.ownerID?e:new vt(e?e.array.slice():[],t)}function Ct(e,t){if(t>=Dt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&m],n-=5;return r}}function kt(e){return"number"==typeof e&&isFinite(e)}function At(e,t,r){(function(e,t,r){var n=e._origin+(void 0===t?0:t),o=void 0===r?e._capacity:r<0?e._capacity+r:e._origin+r;if(kt(o)&&o>Pt||kt(n)&&n<-Pt||kt(o)&&kt(n)&&o-n>Pt)throw new RangeError("Invalid List size: a List cannot hold more than "+Pt+" (2 ** 30) values.")})(e,t,r),void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new E,o=e._origin,i=e._capacity,a=o+t,s=void 0===r?i:r<0?i+r:o+r;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new vt(u&&u.array.length?[void 0,u]:[],n),l+=Lt(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var d=Dt(i),f=Dt(s);f>=Lt(c+5);)u=new vt(u&&u.array.length?[u]:[],n),c+=5;var p=e._tail,h=f<d?Ct(e,s-1):f>d?new vt([],n):p;if(p&&f>d&&a<i&&p.array.length){for(var g=u=Ot(u,n),y=c;y>5;y-=5){var v=d>>>y&m;g=g.array[v]=Ot(g.array[v],n)}g.array[d>>>5&m]=p}if(s<i&&(h=h&&h.removeAfter(n,0,s)),a>=f)a-=f,s-=f,c=5,u=null,h=h&&h.removeBefore(n,0,a);else if(a>o||f<d){for(l=0;u;){var b=a>>>c&m;if(b!==f>>>c&m)break;b&&(l+=(1<<c)*b),c-=5,u=u.array[b]}u&&a>o&&(u=u.removeBefore(n,c,a-l)),u&&f<d&&(u=u.removeAfter(n,c,f-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):xt(a,s,c,u,h)}function Tt(e,t,r){for(var n=[],i=0,s=0;s<r.length;s++){var c=r[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map(function(e){return ce(e)})),n.push(u)}return i>e.size&&(e=e.setSize(i)),at(e,t,n)}function Dt(e){return e<y?0:e-1>>>5<<5}var It,Pt=1073741824;function Lt(e){return e<31?1<<e:Math.pow(2,e)}function Mt(e){return null==e?Nt():Rt(e)?e:Nt().withMutations(function(t){var r=n(e);Ne(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function Rt(e){return Be(e)&&l(e)}function jt(e,t,r,n){var o=Object.create(Mt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=r,o.__hash=n,o}function Nt(){return It||(It=jt(Je(),Et()))}function Ft(e,t,r){var n,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(r===v){if(!c)return e;a.size>=y&&a.size>=2*i.size?(n=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=o.__ownerID=e.__ownerID)):(n=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(r===a.get(s)[1])return e;n=i,o=a.set(s,[t,r])}else n=i.set(t,a.size),o=a.set(a.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=o,e.__hash=void 0,e):jt(n,o)}function Bt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Ht(e){this._iter=e,this.size=e.size}function zt(e){var t=or(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ir,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(2===t){var n=e.__iterator(t,r);return new R(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,r)},t}function Vt(e,t,r){var n=or(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,o){var i=e.get(n,v);return i===v?o:t.call(r,i,n,e)},n.__iterateUncached=function(n,o){var i=this;return e.__iterate(function(e,o,a){return!1!==n(t.call(r,e,o,a),o,i)},o)},n.__iteratorUncached=function(n,o){var i=e.__iterator(2,o);return new R(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return j(n,s,t.call(r,a[1],s,e),o)})},n}function qt(e,t){var r=or(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=zt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=ir,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Gt(e,t,r,n){var o=or(e);return n&&(o.has=function(n){var o=e.get(n,v);return o!==v&&!!t.call(r,o,n,e)},o.get=function(n,o){var i=e.get(n,v);return i!==v&&t.call(r,i,n,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,c){if(t.call(r,e,i,c))return s++,o(e,n?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new R(function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(r,l,u,e))return j(o,n?u:s++,l,i)}})},o}function Wt(e,t,r,n){var o=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r===1/0?r=o:r|=0),A(t,r,o))return e;var i=T(t,o),a=D(r,o);if(i!=i||a!=a)return Wt(e.toSeq().cacheResult(),t,r,n);var s,c=a-i;c==c&&(s=c<0?0:c);var u=or(e);return u.size=0===s?s:e.size&&s||void 0,!n&&te(e)&&s>=0&&(u.get=function(t,r){return(t=C(this,t))>=0&&t<s?e.get(t+i,r):r}),u.__iterateUncached=function(t,r){var o=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(t,r);var a=0,c=!0,u=0;return e.__iterate(function(e,r){if(!c||!(c=a++<i))return u++,!1!==t(e,n?r:u-1,o)&&u!==s}),u},u.__iteratorUncached=function(t,r){if(0!==s&&r)return this.cacheResult().__iterator(t,r);var o=0!==s&&e.__iterator(t,r),a=0,c=0;return new R(function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var e=o.next();return n||1===t?e:j(t,c-1,0===t?void 0:e.value[1],e)})},u}function $t(e,t,r,n){var o=or(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(r,e,i,u)))return c++,o(e,n?i:c-1,a)}),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,u=0;return new R(function(){var e,i,l;do{if((e=s.next()).done)return n||1===o?e:j(o,u++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],l=d[1],c&&(c=t.call(r,l,i,a))}while(c);return 2===o?e:j(o,i,l,e)})},o}function Yt(e,t,r){var n=or(e);return n.__iterateUncached=function(n,o){var i=0,s=!1;return function e(c,u){var l=this;c.__iterate(function(o,c){return(!t||u<t)&&a(o)?e(o,u+1):!1===n(o,r?c:i++,l)&&(s=!0),!s},o)}(e,0),i},n.__iteratorUncached=function(n,o){var i=e.__iterator(n,o),s=[],c=0;return new R(function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(2===n&&(u=u[1]),t&&!(s.length<t)||!a(u))return r?e:j(n,c++,u,e);s.push(i),i=u.__iterator(n,o)}else i=s.pop()}return{value:void 0,done:!0}})},n}function Xt(e,t,r){t||(t=ar);var n=s(e),o=0,i=e.toSeq().map(function(t,n){return[n,t,o++,r?r(t,n,e):t]}).toArray();return i.sort(function(e,r){return t(e[3],r[3])||e[2]-r[2]}).forEach(n?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),n?V(i):c(e)?q(i):G(i)}function Zt(e,t,r){if(t||(t=ar),r){var n=e.toSeq().map(function(t,n){return[t,r(t,n,e)]}).reduce(function(e,r){return Jt(t,e[1],r[1])?r:e});return n&&n[0]}return e.reduce(function(e,r){return Jt(t,e,r)?r:e})}function Jt(e,t,r){var n=e(r,t);return 0===n&&r!==t&&(null==r||r!=r)||n>0}function Qt(e,t,n){var o=or(e);return o.size=new Z(n).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var r,n=this.__iterator(1,t),o=0;!(r=n.next()).done&&!1!==e(r.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map(function(e){return e=r(e),U(o?e.reverse():e)}),a=0,s=!1;return new R(function(){var r;return s||(r=i.map(function(e){return e.next()}),s=r.some(function(e){return e.done})),s?{value:void 0,done:!0}:j(e,a++,t.apply(null,r.map(function(e){return e.value})))})},o}function er(e,t){return te(e)?t:e.constructor(t)}function tr(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function rr(e){return Ne(e.size),O(e)}function nr(e){return s(e)?n:c(e)?o:i}function or(e){return Object.create((s(e)?V:c(e)?q:G).prototype)}function ir(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function ar(e,t){return e>t?1:e<t?-1:0}function sr(e){var t=U(e);if(!t){if(!H(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(r(e))}return t}function cr(e,t){var r,n=function(i){if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(fr.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Fe(i)},o=n.prototype=Object.create(ur);return o.constructor=n,n}t(Mt,Fe),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Mt.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},Mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Nt()},Mt.prototype.set=function(e,t){return Ft(this,e,t)},Mt.prototype.remove=function(e){return Ft(this,e,v)},Mt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Mt.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],r)},t)},Mt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Mt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?jt(t,r,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=r,this)},Mt.isOrderedMap=Rt,Mt.prototype[h]=!0,Mt.prototype[g]=Mt.prototype.remove,t(Bt,V),Bt.prototype.get=function(e,t){return this._iter.get(e,t)},Bt.prototype.has=function(e){return this._iter.has(e)},Bt.prototype.valueSeq=function(){return this._iter.valueSeq()},Bt.prototype.reverse=function(){var e=this,t=qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Bt.prototype.map=function(e,t){var r=this,n=Vt(this,e,t);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(e,t)}),n},Bt.prototype.__iterate=function(e,t){var r,n=this;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?rr(this):0,function(o){return e(o,t?--r:r++,n)}),t)},Bt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var r=this._iter.__iterator(1,t),n=t?rr(this):0;return new R(function(){var o=r.next();return o.done?o:j(e,t?--n:n++,o.value,o)})},Bt.prototype[h]=!0,t(Ut,q),Ut.prototype.includes=function(e){return this._iter.includes(e)},Ut.prototype.__iterate=function(e,t){var r=this,n=0;return this._iter.__iterate(function(t){return e(t,n++,r)},t)},Ut.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t),n=0;return new R(function(){var t=r.next();return t.done?t:j(e,n++,t.value,t)})},t(Kt,G),Kt.prototype.has=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){return e(t,t,r)},t)},Kt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R(function(){var t=r.next();return t.done?t:j(e,t.value,t.value,t)})},t(Ht,V),Ht.prototype.entrySeq=function(){return this._iter.toSeq()},Ht.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){if(t){tr(t);var n=a(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}},t)},Ht.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R(function(){for(;;){var t=r.next();if(t.done)return t;var n=t.value;if(n){tr(n);var o=a(n);return j(e,o?n.get(0):n[0],o?n.get(1):n[1],t)}}})},Ut.prototype.cacheResult=Bt.prototype.cacheResult=Kt.prototype.cacheResult=Ht.prototype.cacheResult=ir,t(cr,ve),cr.prototype.toString=function(){return this.__toString(dr(this)+" {","}")},cr.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},cr.prototype.get=function(e,t){if(!this.has(e))return t;var r=this._defaultValues[e];return this._map?this._map.get(e,r):r},cr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=lr(this,Je()))},cr.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+dr(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:lr(this,r)},cr.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:lr(this,t)},cr.prototype.wasAltered=function(){return this._map.wasAltered()},cr.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},cr.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},cr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?lr(this,t,e):(this.__ownerID=e,this._map=t,this)};var ur=cr.prototype;function lr(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._map=t,n.__ownerID=r,n}function dr(e){return e._name||e.constructor.name||"Record"}function fr(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function pr(e){return null==e?wr():hr(e)&&!l(e)?e:wr().withMutations(function(t){var r=i(e);Ne(r.size),r.forEach(function(e){return t.add(e)})})}function hr(e){return!(!e||!e[yr])}ur[g]=ur.remove,ur.deleteIn=ur.removeIn=He.removeIn,ur.merge=He.merge,ur.mergeWith=He.mergeWith,ur.mergeIn=He.mergeIn,ur.mergeDeep=He.mergeDeep,ur.mergeDeepWith=He.mergeDeepWith,ur.mergeDeepIn=He.mergeDeepIn,ur.setIn=He.setIn,ur.update=He.update,ur.updateIn=He.updateIn,ur.withMutations=He.withMutations,ur.asMutable=He.asMutable,ur.asImmutable=He.asImmutable,t(pr,we),pr.of=function(){return this(arguments)},pr.fromKeys=function(e){return this(n(e).keySeq())},pr.prototype.toString=function(){return this.__toString("Set {","}")},pr.prototype.has=function(e){return this._map.has(e)},pr.prototype.add=function(e){return vr(this,this._map.set(e,!0))},pr.prototype.remove=function(e){return vr(this,this._map.remove(e))},pr.prototype.clear=function(){return vr(this,this._map.clear())},pr.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter(function(e){return 0!==e.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)i(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},pr.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.every(function(e){return e.includes(r)})||e.remove(r)})})},pr.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.some(function(e){return e.includes(r)})&&e.remove(r)})})},pr.prototype.merge=function(){return this.union.apply(this,arguments)},pr.prototype.mergeWith=function(t){var r=e.call(arguments,1);return this.union.apply(this,r)},pr.prototype.sort=function(e){return Sr(Xt(this,e))},pr.prototype.sortBy=function(e,t){return Sr(Xt(this,t,e))},pr.prototype.wasAltered=function(){return this._map.wasAltered()},pr.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate(function(t,n){return e(n,n,r)},t)},pr.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},pr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},pr.isSet=hr;var gr,yr="@@__IMMUTABLE_SET__@@",mr=pr.prototype;function vr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function br(e,t){var r=Object.create(mr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function wr(){return gr||(gr=br(Je()))}function Sr(e){return null==e?Cr():xr(e)?e:Cr().withMutations(function(t){var r=i(e);Ne(r.size),r.forEach(function(e){return t.add(e)})})}function xr(e){return hr(e)&&l(e)}mr[yr]=!0,mr[g]=mr.remove,mr.mergeDeep=mr.merge,mr.mergeDeepWith=mr.mergeWith,mr.withMutations=He.withMutations,mr.asMutable=He.asMutable,mr.asImmutable=He.asImmutable,mr.__empty=wr,mr.__make=br,t(Sr,pr),Sr.of=function(){return this(arguments)},Sr.fromKeys=function(e){return this(n(e).keySeq())},Sr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Sr.isOrderedSet=xr;var Er,_r=Sr.prototype;function Or(e,t){var r=Object.create(_r);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function Cr(){return Er||(Er=Or(Nt()))}function kr(e){return null==e?Lr():Ar(e)?e:Lr().unshiftAll(e)}function Ar(e){return!(!e||!e[Dr])}_r[h]=!0,_r.__empty=Cr,_r.__make=Or,t(kr,be),kr.of=function(){return this(arguments)},kr.prototype.toString=function(){return this.__toString("Stack [","]")},kr.prototype.get=function(e,t){var r=this._head;for(e=C(this,e);r&&e--;)r=r.next;return r?r.value:t},kr.prototype.peek=function(){return this._head&&this._head.value},kr.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,r=arguments.length-1;r>=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Pr(e,t)},kr.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ne(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):Pr(t,r)},kr.prototype.pop=function(){return this.slice(1)},kr.prototype.unshift=function(){return this.push.apply(this,arguments)},kr.prototype.unshiftAll=function(e){return this.pushAll(e)},kr.prototype.shift=function(){return this.pop.apply(this,arguments)},kr.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):Lr()},kr.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var r=T(e,this.size);if(D(t,this.size)!==this.size)return be.prototype.slice.call(this,e,t);for(var n=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=n,this._head=o,this.__hash=void 0,this.__altered=!0,this):Pr(n,o)},kr.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},kr.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},kr.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new R(function(){if(n){var t=n.value;return n=n.next,j(e,r++,t)}return{value:void 0,done:!0}})},kr.isStack=Ar;var Tr,Dr="@@__IMMUTABLE_STACK__@@",Ir=kr.prototype;function Pr(e,t,r,n){var o=Object.create(Ir);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Lr(){return Tr||(Tr=Pr(0))}function Mr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Ir[Dr]=!0,Ir.withMutations=He.withMutations,Ir.asMutable=He.asMutable,Ir.asImmutable=He.asImmutable,Ir.wasAltered=He.wasAltered,r.Iterator=R,Mr(r,{toArray:function(){Ne(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Bt(this,!0)},toMap:function(){return Fe(this.toKeyedSeq())},toObject:function(){Ne(this.size);var e={};return this.__iterate(function(t,r){var n;"string"==typeof(n=r)&&("__proto__"===n||"constructor"===n)||(e[r]=t)}),e},toOrderedMap:function(){return Mt(this.toKeyedSeq())},toOrderedSet:function(){return Sr(s(this)?this.valueSeq():this)},toSet:function(){return pr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Kt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return kr(s(this)?this.valueSeq():this)},toList:function(){return ht(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return er(this,function(e,t){var r=s(e),o=[e].concat(t).map(function(e){return a(e)?r&&(e=n(e)):e=r?ne(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||r&&s(i)||c(e)&&c(i))return i}var u=new Z(o);return r?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),u}(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return fe(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){Ne(this.size);var r=!0;return this.__iterate(function(n,o,i){if(!e.call(t,n,o,i))return r=!1,!1}),r},filter:function(e,t){return er(this,Gt(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},forEach:function(e,t){return Ne(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ne(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!=n?n.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return er(this,Vt(this,e,t))},reduce:function(e,t,r){var n,o;return Ne(this.size),arguments.length<2?o=!0:n=t,this.__iterate(function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return er(this,qt(this,!0))},slice:function(e,t){return er(this,Wt(this,e,t,!0))},some:function(e,t){return!this.every(Br(e),t)},sort:function(e){return er(this,Xt(this,e))},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(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=Fe().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return pe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Z(e._cache);var t=e.toSeq().map(Fr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Br(e),t)},findEntry:function(e,t,r){var n=r;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},findLastEntry:function(e,t,r){return this.toKeyedSeq().reverse().findEntry(e,t,r)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(k)},flatMap:function(e,t){return er(this,function(e,t,r){var n=nr(e);return e.toSeq().map(function(o,i){return n(t.call(r,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return er(this,Yt(this,e,!0))},fromEntrySeq:function(){return new Ht(this)},get:function(e,t){return this.find(function(t,r){return fe(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,o=sr(e);!(r=o.next()).done;){var i=r.value;if((n=n&&n.get?n.get(i,v):v)===v)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=s(e),o=(l(e)?Mt():Fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(r,i,a,e),function(e){return(e=e||[]).push(n?[a,i]:i),e})});var i=nr(e);return o.map(function(t){return er(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return fe(t,e)})},keySeq:function(){return this.toSeq().map(Nr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Zt(this,e)},maxBy:function(e,t){return Zt(this,t,e)},min:function(e){return Zt(this,e?Ur(e):zr)},minBy:function(e,t){return Zt(this,t?Ur(t):zr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return er(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return er(this,$t(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Br(e),t)},sortBy:function(e,t){return er(this,Xt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return er(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return er(this,function(e,t,r){var n=or(e);return n.__iterateUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterate(n,o);var a=0;return e.__iterate(function(e,o,s){return t.call(r,e,o,s)&&++a&&n(e,o,i)}),a},n.__iteratorUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterator(n,o);var a=e.__iterator(2,o),s=!0;return new R(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(r,u,c,i)?2===n?e:j(n,c,u,e):(s=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Br(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),r=s(e),n=t?1:0,o=e.__iterate(r?t?function(e,t){n=31*n+Vr(Ee(e),Ee(t))|0}:function(e,t){n=n+Vr(Ee(e),Ee(t))|0}:t?function(e){n=31*n+Ee(e)|0}:function(e){n=n+Ee(e)|0});return function(e,t){return t=Se(t,3432918353),t=Se(t<<15|t>>>-15,461845907),t=Se(t<<13|t>>>-13,5),t=Se((t=(t+3864292196|0)^e)^t>>>16,2246822507),xe((t=Se(t^t>>>13,3266489909))^t>>>16)}(o,n)}(this))}});var Rr=r.prototype;Rr[d]=!0,Rr[M]=Rr.values,Rr.__toJS=Rr.toArray,Rr.__toStringMapper=Kr,Rr.inspect=Rr.toSource=function(){return this.toString()},Rr.chain=Rr.flatMap,Rr.contains=Rr.includes,Mr(n,{flip:function(){return er(this,zt(this))},mapEntries:function(e,t){var r=this,n=0;return er(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return er(this,this.toSeq().flip().map(function(n,o){return e.call(t,n,o,r)}).flip())}});var jr=n.prototype;function Nr(e,t){return t}function Fr(e,t){return[t,e]}function Br(e){return function(){return!e.apply(this,arguments)}}function Ur(e){return function(){return-e.apply(this,arguments)}}function Kr(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Hr(){return _(arguments)}function zr(e,t){return e<t?1:e>t?-1:0}function Vr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return jr[f]=!0,jr[M]=Rr.entries,jr.__toJS=Rr.toObject,jr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Kr(e)},Mr(o,{toKeyedSeq:function(){return new Bt(this,!1)},filter:function(e,t){return er(this,Gt(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return er(this,qt(this,!1))},slice:function(e,t){return er(this,Wt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=T(e,e<0?this.count():this.size);var n=this.slice(0,e);return er(this,1===r?n:n.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.findLastEntry(e,t);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(e){return er(this,Yt(this,e,!1))},get:function(e,t){return(e=C(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=C(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return er(this,function(e,t){var r=or(e);return r.size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var o=this,i=0;return e.__iterate(function(e,n){return(!i||!1!==r(t,i++,o))&&!1!==r(e,i++,o)},n),i},r.__iteratorUncached=function(r,n){var o,i=e.__iterator(1,n),a=0;return new R(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?j(r,a++,t):j(r,a++,o.value,o)})},r}(this,e))},interleave:function(){var e=[this].concat(_(arguments)),t=Qt(this.toSeq(),q.of,e),r=t.flatten(!0);return t.size&&(r.size=t.size*e.length),er(this,r)},keySeq:function(){return ye(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return er(this,$t(this,e,t,!1))},zip:function(){return er(this,Qt(this,Hr,[this].concat(_(arguments))))},zipWith:function(e){var t=_(arguments);return t[0]=this,er(this,Qt(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Mr(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Rr.includes,i.prototype.contains=i.prototype.includes,Mr(V,n.prototype),Mr(q,o.prototype),Mr(G,i.prototype),Mr(ve,n.prototype),Mr(be,o.prototype),Mr(we,i.prototype),{Iterable:r,Seq:z,Collection:me,Map:Fe,OrderedMap:Mt,List:ht,Stack:kr,Set:pr,OrderedSet:Sr,Record:cr,Range:ye,Repeat:he,is:fe,fromJS:ce}}()},5580(e,t,r){var n=r(6110)(r(9325),"DataView");e.exports=n},1549(e,t,r){var n=r(2032),o=r(3862),i=r(6721),a=r(2749),s=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},79(e,t,r){var n=r(3702),o=r(80),i=r(4739),a=r(8655),s=r(1175);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},8223(e,t,r){var n=r(6110)(r(9325),"Map");e.exports=n},3661(e,t,r){var n=r(3040),o=r(7670),i=r(289),a=r(4509),s=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},2804(e,t,r){var n=r(6110)(r(9325),"Promise");e.exports=n},6545(e,t,r){var n=r(6110)(r(9325),"Set");e.exports=n},8859(e,t,r){var n=r(3661),o=r(1380),i=r(1459);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217(e,t,r){var n=r(79),o=r(1420),i=r(938),a=r(3605),s=r(9817),c=r(945);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},1873(e,t,r){var n=r(9325).Symbol;e.exports=n},7828(e,t,r){var n=r(9325).Uint8Array;e.exports=n},8303(e,t,r){var n=r(6110)(r(9325),"WeakMap");e.exports=n},1033(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},3729(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},9770(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},5325(e,t,r){var n=r(6131);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},9905(e){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},695(e,t,r){var n=r(8096),o=r(2428),i=r(6449),a=r(3656),s=r(361),c=r(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),d=!r&&!l&&a(e),f=!r&&!l&&!d&&c(e),p=r||l||d||f,h=p?n(e.length,String):[],g=h.length;for(var y in e)!t&&!u.call(e,y)||p&&("length"==y||d&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||h.push(y);return h}},4932(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},4528(e){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},882(e){e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}},4248(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},1733(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},7805(e,t,r){var n=r(3360),o=r(5288);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},6547(e,t,r){var n=r(3360),o=r(5288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},6025(e,t,r){var n=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4733(e,t,r){var n=r(1791),o=r(5950);e.exports=function(e,t){return e&&n(t,o(t),e)}},3838(e,t,r){var n=r(1791),o=r(7241);e.exports=function(e,t){return e&&n(t,o(t),e)}},3360(e,t,r){var n=r(3243);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9999(e,t,r){var n=r(7217),o=r(3729),i=r(6547),a=r(4733),s=r(3838),c=r(3290),u=r(3007),l=r(2271),d=r(8948),f=r(2),p=r(3349),h=r(5861),g=r(6189),y=r(7199),m=r(5529),v=r(6449),b=r(3656),w=r(7730),S=r(3805),x=r(8440),E=r(5950),_=r(7241),O="[object Arguments]",C="[object Function]",k="[object Object]",A={};A[O]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[k]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,T,D,I,P){var L,M=1&r,R=2&r,j=4&r;if(T&&(L=I?T(t,D,I,P):T(t)),void 0!==L)return L;if(!S(t))return t;var N=v(t);if(N){if(L=g(t),!M)return u(t,L)}else{var F=h(t),B=F==C||"[object GeneratorFunction]"==F;if(b(t))return c(t,M);if(F==k||F==O||B&&!I){if(L=R||B?{}:m(t),!M)return R?d(t,s(L,t)):l(t,a(L,t))}else{if(!A[F])return I?t:{};L=y(t,F,M)}}P||(P=new n);var U=P.get(t);if(U)return U;P.set(t,L),x(t)?t.forEach(function(n){L.add(e(n,r,T,n,t,P))}):w(t)&&t.forEach(function(n,o){L.set(o,e(n,r,T,o,t,P))});var K=N?void 0:(j?R?p:f:R?_:E)(t);return o(K||t,function(n,o){K&&(n=t[o=n]),i(L,o,e(n,r,T,o,t,P))}),L}},9344(e,t,r){var n=r(3805),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},2523(e){e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},3120(e,t,r){var n=r(4528),o=r(5891);e.exports=function e(t,r,i,a,s){var c=-1,u=t.length;for(i||(i=o),s||(s=[]);++c<u;){var l=t[c];r>0&&i(l)?r>1?e(l,r-1,i,a,s):n(s,l):a||(s[s.length]=l)}return s}},6649(e,t,r){var n=r(3221)();e.exports=n},7422(e,t,r){var n=r(1769),o=r(7797);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},2199(e,t,r){var n=r(4528),o=r(6449);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},2552(e,t,r){var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},6131(e,t,r){var n=r(2523),o=r(5463),i=r(6959);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},7534(e,t,r){var n=r(2552),o=r(346);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},270(e,t,r){var n=r(7068),o=r(346);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},7068(e,t,r){var n=r(7217),o=r(5911),i=r(1986),a=r(689),s=r(5861),c=r(6449),u=r(3656),l=r(7167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,g,y,m){var v=c(e),b=c(t),w=v?f:s(e),S=b?f:s(t),x=(w=w==d?p:w)==p,E=(S=S==d?p:S)==p,_=w==S;if(_&&u(e)){if(!u(t))return!1;v=!0,x=!1}if(_&&!x)return m||(m=new n),v||l(e)?o(e,t,r,g,y,m):i(e,t,w,r,g,y,m);if(!(1&r)){var O=x&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(O||C){var k=O?e.value():e,A=C?t.value():t;return m||(m=new n),y(k,A,r,g,m)}}return!!_&&(m||(m=new n),a(e,t,r,g,y,m))}},9172(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},1799(e,t,r){var n=r(7217),o=r(270);e.exports=function(e,t,r,i){var a=r.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=r[a];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var l=(u=r[a])[0],d=e[l],f=u[1];if(c&&u[2]){if(void 0===d&&!(l in e))return!1}else{var p=new n;if(i)var h=i(d,f,l,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},5463(e){e.exports=function(e){return e!=e}},5083(e,t,r){var n=r(1882),o=r(7296),i=r(3805),a=r(7473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?f:s).test(a(e))}},6038(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},4901(e,t,r){var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},7770(e,t,r){var n=r(3663),o=r(7978),i=r(3488),a=r(6449),s=r(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},8984(e,t,r){var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},2903(e,t,r){var n=r(3805),o=r(5527),i=r(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},3663(e,t,r){var n=r(1799),o=r(776),i=r(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},7978(e,t,r){var n=r(270),o=r(8156),i=r(631),a=r(8586),s=r(756),c=r(7197),u=r(7797);e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},5250(e,t,r){var n=r(7217),o=r(7805),i=r(6649),a=r(2824),s=r(3805),c=r(7241),u=r(4974);e.exports=function e(t,r,l,d,f){t!==r&&i(r,function(i,c){if(f||(f=new n),s(i))a(t,r,c,l,e,d,f);else{var p=d?d(u(t,c),i,c+"",t,r,f):void 0;void 0===p&&(p=i),o(t,c,p)}},c)}},2824(e,t,r){var n=r(7805),o=r(3290),i=r(1961),a=r(3007),s=r(5529),c=r(2428),u=r(6449),l=r(3693),d=r(3656),f=r(1882),p=r(3805),h=r(1331),g=r(7167),y=r(4974),m=r(9884);e.exports=function(e,t,r,v,b,w,S){var x=y(e,r),E=y(t,r),_=S.get(E);if(_)n(e,r,_);else{var O=w?w(x,E,r+"",e,t,S):void 0,C=void 0===O;if(C){var k=u(E),A=!k&&d(E),T=!k&&!A&&g(E);O=E,k||A||T?u(x)?O=x:l(x)?O=a(x):A?(C=!1,O=o(E,!0)):T?(C=!1,O=i(E,!0)):O=[]:h(E)||c(E)?(O=x,c(x)?O=m(x):p(x)&&!f(x)||(O=s(E))):C=!1}C&&(S.set(E,O),b(O,E,v,w,S),S.delete(E)),n(e,r,O)}}},7237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255(e,t,r){var n=r(7422);e.exports=function(e){return function(t){return n(t,e)}}},4552(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},9302(e,t,r){var n=r(3488),o=r(6757),i=r(2865);e.exports=function(e,t){return i(o(e,t,n),e+"")}},9570(e,t,r){var n=r(7334),o=r(3243),i=r(3488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},5160(e){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},8096(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7556(e,t,r){var n=r(1873),o=r(4932),i=r(6449),a=r(4394),s=n?n.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},4128(e,t,r){var n=r(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7301(e){e.exports=function(e){return function(t){return e(t)}}},5765(e,t,r){var n=r(8859),o=r(5325),i=r(9905),a=r(9219),s=r(4517),c=r(4247);e.exports=function(e,t,r){var u=-1,l=o,d=e.length,f=!0,p=[],h=p;if(r)f=!1,l=i;else if(d>=200){var g=t?null:s(e);if(g)return c(g);f=!1,l=a,h=new n}else h=t?[]:p;e:for(;++u<d;){var y=e[u],m=t?t(y):y;if(y=r||0!==y?y:0,f&&m==m){for(var v=h.length;v--;)if(h[v]===m)continue e;t&&h.push(m),p.push(y)}else l(h,m,r)||(h!==p&&h.push(m),p.push(y))}return p}},9931(e,t,r){var n=r(1769),o=r(8090),i=r(8969),a=r(7797),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=-1,c=(t=n(t,e)).length;if(!c)return!0;for(;++r<c;){var u=a(t[r]);if("__proto__"===u&&!s.call(e,"__proto__"))return!1;if(("constructor"===u||"prototype"===u)&&r<c-1)return!1}var l=i(e,t);return null==l||delete l[a(o(t))]}},514(e,t,r){var n=r(4932);e.exports=function(e,t){return n(t,function(t){return e[t]})}},9219(e){e.exports=function(e,t){return e.has(t)}},1769(e,t,r){var n=r(6449),o=r(8586),i=r(1802),a=r(3222);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},9653(e,t,r){var n=r(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},3290(e,t,r){e=r.nmd(e);var n=r(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},6169(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},3201(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},3736(e,t,r){var n=r(1873),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},1961(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},3007(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},1791(e,t,r){var n=r(6547),o=r(3360);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),a?o(r,u,l):n(r,u,l)}return r}},2271(e,t,r){var n=r(1791),o=r(4664);e.exports=function(e,t){return n(e,o(e),t)}},8948(e,t,r){var n=r(1791),o=r(6375);e.exports=function(e,t){return n(e,o(e),t)}},5481(e,t,r){var n=r(9325)["__core-js_shared__"];e.exports=n},999(e,t,r){var n=r(9302),o=r(6800);e.exports=function(e){return n(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var c=r[n];c&&e(t,c,n,a)}return t})}},3221(e){e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}},5539(e,t,r){var n=r(882),o=r(828),i=r(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(a,"")),e,"")}}},4517(e,t,r){var n=r(6545),o=r(3950),i=r(4247),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},3138(e,t,r){var n=r(1331);e.exports=function(e){return n(e)?void 0:e}},4647(e,t,r){var n=r(4552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"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",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},3243(e,t,r){var n=r(6110),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5911(e,t,r){var n=r(8859),o=r(4248),i=r(9219);e.exports=function(e,t,r,a,s,c){var u=1&r,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var f=c.get(e),p=c.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var m=e[h],v=t[h];if(a)var b=u?a(v,m,h,t,e,c):a(m,v,h,e,t,c);if(void 0!==b){if(b)continue;g=!1;break}if(y){if(!o(t,function(e,t){if(!i(y,t)&&(m===e||s(m,e,r,a,c)))return y.push(t)})){g=!1;break}}else if(m!==v&&!s(m,v,r,a,c)){g=!1;break}}return c.delete(e),c.delete(t),g}},1986(e,t,r){var n=r(1873),o=r(7828),i=r(5288),a=r(5911),s=r(317),c=r(4247),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&n;if(p||(p=c),e.size!=t.size&&!h)return!1;var g=f.get(e);if(g)return g==t;n|=2,f.set(e,t);var y=a(p(e),p(t),n,u,d,f);return f.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},689(e,t,r){var n=r(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,s){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var d=l;d--;){var f=u[d];if(!(c?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var y=c;++d<l;){var m=e[f=u[d]],v=t[f];if(i)var b=c?i(v,m,f,t,e,s):i(m,v,f,e,t,s);if(!(void 0===b?m===v||a(m,v,r,i,s):b)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}},8816(e,t,r){var n=r(5970),o=r(6757),i=r(2865);e.exports=function(e){return i(o(e,void 0,n),e+"")}},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,r){var n=r(2199),o=r(4664),i=r(5950);e.exports=function(e){return n(e,i,o)}},3349(e,t,r){var n=r(2199),o=r(6375),i=r(7241);e.exports=function(e){return n(e,i,o)}},2651(e,t,r){var n=r(4218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},776(e,t,r){var n=r(756),o=r(5950);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},6110(e,t,r){var n=r(5083),o=r(392);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},8879(e,t,r){var n=r(4335)(Object.getPrototypeOf,Object);e.exports=n},659(e,t,r){var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},4664(e,t,r){var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},6375(e,t,r){var n=r(4528),o=r(8879),i=r(4664),a=r(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},5861(e,t,r){var n=r(5580),o=r(8223),i=r(2804),a=r(6545),s=r(8303),c=r(2552),u=r(7473),l="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",g=u(n),y=u(o),m=u(i),v=u(a),b=u(s),w=c;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case g:return h;case y:return l;case m:return d;case v:return f;case b:return p}return t}),e.exports=w},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},9326(e,t,r){var n=r(1769),o=r(2428),i=r(6449),a=r(361),s=r(294),c=r(7797);e.exports=function(e,t,r){for(var u=-1,l=(t=n(t,e)).length,d=!1;++u<l;){var f=c(t[u]);if(!(d=null!=e&&r(e,f)))break;e=e[f]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&s(l)&&a(f,l)&&(i(e)||o(e))}},5434(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},2032(e,t,r){var n=r(1042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},2749(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},5749(e,t,r){var n=r(1042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},6189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},7199(e,t,r){var n=r(9653),o=r(6169),i=r(3201),a=r(3736),s=r(1961);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},5529(e,t,r){var n=r(9344),o=r(8879),i=r(5527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},5891(e,t,r){var n=r(1873),o=r(2428),i=r(6449),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6800(e,t,r){var n=r(5288),o=r(4894),i=r(361),a=r(3805);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},8586(e,t,r){var n=r(6449),o=r(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},756(e,t,r){var n=r(3805);e.exports=function(e){return e==e&&!n(e)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var n=r(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},4739(e,t,r){var n=r(6025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var n=r(6025);e.exports=function(e){return n(this.__data__,e)>-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},7197(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},2224(e,t,r){var n=r(104);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},6757(e,t,r){var n=r(1033),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(c),n(e,this,u)}}},8969(e,t,r){var n=r(7422),o=r(5160);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},4974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},2865(e,t,r){var n=r(9570),o=r(1811)(n);e.exports=o},1811(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},6959(e){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},1802(e,t,r){var n=r(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t});e.exports=a},7797(e,t,r){var n=r(4394);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},2225(e){var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",c="["+r+"]",u="["+n+"]",l="[^"+t+i+s+r+n+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",h="(?:"+u+"|"+l+")",g="(?:"+p+"|"+l+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+v+"(?:\\u200d(?:"+["[^"+t+"]",d,f].join("|")+")"+b+v+")*",S="(?:"+[c,d,f].join("|")+")"+w,x=RegExp([p+"?"+u+"+"+y+"(?="+[a,p,"$"].join("|")+")",g+"+"+m+"(?="+[a,p+h,"$"].join("|")+")",p+"?"+h+"+"+y,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,S].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},7334(e){e.exports=function(e){return function(){return e}}},8221(e,t,r){var n=r(3805),o=r(124),i=r(9374),a=Math.max,s=Math.min;e.exports=function(e,t,r){var c,u,l,d,f,p,h=0,g=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=c,n=u;return c=u=void 0,h=t,d=e.apply(n,r)}function b(e){var r=e-p;return void 0===p||r>=t||r<0||y&&e-h>=l}function w(){var e=o();if(b(e))return S(e);f=setTimeout(w,function(e){var r=t-(e-p);return y?s(r,l-(e-h)):r}(e))}function S(e){return f=void 0,m&&c?v(e):(c=u=void 0,d)}function x(){var e=o(),r=b(e);if(c=arguments,u=this,p=e,r){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),g?v(e):d}(p);if(y)return clearTimeout(f),f=setTimeout(w,t),v(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,n(r)&&(g=!!r.leading,l=(y="maxWait"in r)?a(i(r.maxWait)||0,t):l,m="trailing"in r?!!r.trailing:m),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,c=p=u=f=void 0},x.flush=function(){return void 0===f?d:S(o())},x}},828(e,t,r){var n=r(4647),o=r(3222),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5970(e,t,r){var n=r(3120);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},8156(e,t,r){var n=r(7422);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},631(e,t,r){var n=r(8077),o=r(9326);e.exports=function(e,t){return null!=e&&o(e,t,n)}},3488(e){e.exports=function(e){return e}},9859(e,t,r){var n=r(6131),o=r(4894),i=r(5015),a=r(1489),s=r(5880),c=Math.max;e.exports=function(e,t,r,u){e=o(e)?e:s(e),r=r&&!u?a(r):0;var l=e.length;return r<0&&(r=c(l+r,0)),i(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&n(e,t,r)>-1}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3693(e,t,r){var n=r(4894),o=r(346);e.exports=function(e){return o(e)&&n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},2193(e,t,r){var n=r(8984),o=r(5861),i=r(2428),a=r(6449),s=r(4894),c=r(3656),u=r(5527),l=r(7167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,t,r){var n=r(2552),o=r(8879),i=r(346),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},5015(e,t,r){var n=r(2552),o=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},4394(e,t,r){var n=r(2552),o=r(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},8090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5321(e,t,r){var n=r(5539)(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()});e.exports=n},104(e,t,r){var n=r(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5364(e,t,r){var n=r(5250),o=r(999)(function(e,t,r){n(e,t,r)});e.exports=o},6924(e,t,r){var n=r(5250),o=r(999)(function(e,t,r,o){n(e,t,r,o)});e.exports=o},3950(e){e.exports=function(){}},124(e,t,r){var n=r(9325);e.exports=function(){return n.Date.now()}},179(e,t,r){var n=r(4932),o=r(9999),i=r(9931),a=r(1769),s=r(1791),c=r(3138),u=r(8816),l=r(3349),d=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,l(e),r),u&&(r=o(r,7,c));for(var d=t.length;d--;)i(r,t[d]);return r});e.exports=d},583(e,t,r){var n=r(7237),o=r(7255),i=r(8586),a=r(7797);e.exports=function(e){return i(e)?n(a(e)):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},7400(e,t,r){var n=r(9374),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489(e,t,r){var n=r(7400);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},9374(e,t,r){var n=r(4128),o=r(3805),i=r(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):a.test(e)?NaN:+e}},9884(e,t,r){var n=r(1791),o=r(7241);e.exports=function(e){return n(e,o(e))}},3222(e,t,r){var n=r(7556);e.exports=function(e){return null==e?"":n(e)}},9786(e,t,r){var n=r(3120),o=r(7770),i=r(9302),a=r(5765),s=r(3693),c=r(8090),u=i(function(e){var t=c(e);return s(t)&&(t=void 0),a(n(e,1,s,!0),o(t,2))});e.exports=u},7200(e,t,r){var n=r(3222),o=0;e.exports=function(e){var t=++o;return n(e)+t}},5880(e,t,r){var n=r(514),o=r(5950);e.exports=function(e){return null==e?[]:n(e,o(e))}},6645(e,t,r){var n=r(1733),o=r(5434),i=r(3222),a=r(2225);e.exports=function(e,t,r){return e=i(e),void 0===(t=r?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},5228(e){var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var l=0;l<a.length;l++)n.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},115(e){var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,c,u,l=t(e),d=t(a);if(l&&d){if((c=e.length)!=a.length)return!1;for(s=c;0!==s--;)if(!i(e[s],a[s]))return!1;return!0}if(l!=d)return!1;var f=e instanceof Date,p=a instanceof Date;if(f!=p)return!1;if(f&&p)return e.getTime()==a.getTime();var h=e instanceof RegExp,g=a instanceof RegExp;if(h!=g)return!1;if(h&&g)return e.toString()==a.toString();var y=r(e);if((c=y.length)!==r(a).length)return!1;for(s=c;0!==s--;)if(!n.call(a,y[s]))return!1;if(o&&e instanceof Element&&a instanceof Element)return e===a;for(s=c;0!==s--;)if(!("_owner"===(u=y[s])&&e.$$typeof||i(e[u],a[u])))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},2799(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case y:case g:case c:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=y,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||S(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=S},4363(e,t,r){e.exports=r(2799)},2791(){!function(e){if(!e.setImmediate){var t,r,n,o,i,a=1,s={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){f(e.data)},t=function(e){n.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,t=function(e){var t=u.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):t=function(e){setTimeout(f,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var o={callback:e,args:r};return s[a]=o,t(a),a++},l.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?"undefined"==typeof globalThis?this:globalThis:self)},9423(e,t,r){r.d(t,{A:()=>n}),e=r.hmd(e);const n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:e)},818(e){e.exports=function(e,t){t=t||{};var r,n,o,i=e.ownerDocument||e,a=[],s=[],c=function(e){var t=[];function r(n,o){if(n===e.documentElement)return!1;for(var i=0,a=t.length;i<a;i++)if(t[i][0]===n)return t[i][1];var s=!1;return"none"===(o=o||e.defaultView.getComputedStyle(n)).display?s=!0:n.parentNode&&(s=r(n.parentNode)),t.push([n,s]),s}return function(t){if(t===e.documentElement)return!1;var n=e.defaultView.getComputedStyle(t);return!!r(t,n)||"hidden"===n.visibility}}(i),u=["input","select","a[href]","textarea","button","[tabindex]"],l=e.querySelectorAll(u.join(","));if(t.includeContainer){var d=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;u.some(function(t){return d.call(e,t)})&&(l=Array.prototype.slice.apply(l)).unshift(e)}for(var f=0,p=l.length;f<p;f++)r=l[f],n=parseInt(r.getAttribute("tabindex"),10),(o=isNaN(n)?r.tabIndex:n)<0||"INPUT"===r.tagName&&"hidden"===r.type||r.disabled||c(r,i)||(0===o?a.push(r):s.push({index:f,tabIndex:o,node:r}));var h=s.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},7232(e,t,r){var n;!function(o,i){var a="function",s="object",c="model",u="name",l="type",d="vendor",f="version",p="architecture",h="console",g="mobile",y="tablet",m="smarttv",v="wearable",b={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},w={rgx:function(e,t){for(var r,n,o,c,u,l,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(o=0;o<p.length;o++)l=u[++n],typeof(c=p[o])===s&&c.length>0?2==c.length?typeof c[1]==a?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3==c.length?typeof c[1]!==a||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):i:this[c[0]]=l?c[1].call(this,l,c[2]):i:4==c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):i):this[c]=l||i;d+=2}},str:function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(b.has(t[r][n],e))return"?"===r?i:r}else if(b.has(t[r],e))return"?"===r?i:r;return e}},S={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{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"}}}},x={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[u,f],[/(opios)[\/\s]+([\w\.]+)/i],[[u,"Opera Mini"],f],[/\s(opr)\/([\w\.]+)/i],[[u,"Opera"],f],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[u,f],[/(konqueror)\/([\w\.]+)/i],[[u,"Konqueror"],f],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[u,"IE"],f],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[u,"Edge"],f],[/(yabrowser)\/([\w\.]+)/i],[[u,"Yandex"],f],[/(Avast)\/([\w\.]+)/i],[[u,"Avast Secure Browser"],f],[/(AVG)\/([\w\.]+)/i],[[u,"AVG Secure Browser"],f],[/(puffin)\/([\w\.]+)/i],[[u,"Puffin"],f],[/(focus)\/([\w\.]+)/i],[[u,"Firefox Focus"],f],[/(opt)\/([\w\.]+)/i],[[u,"Opera Touch"],f],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[u,"UCBrowser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(windowswechat qbcore)\/([\w\.]+)/i],[[u,"WeChat(Win) Desktop"],f],[/(micromessenger)\/([\w\.]+)/i],[[u,"WeChat"],f],[/(brave)\/([\w\.]+)/i],[[u,"Brave"],f],[/(qqbrowserlite)\/([\w\.]+)/i],[u,f],[/(QQ)\/([\d\.]+)/i],[u,f],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[u,f],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[u,f],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[u,f],[/(MetaSr)[\/\s]?([\w\.]+)/i],[u],[/(LBBROWSER)/i],[u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[f,[u,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[u,f],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[f,[u,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[u,/(.+)/,"$1 WebView"],f],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[u,/(.+(?:g|us))(.+)/,"$1 $2"],f],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[f,[u,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[u,"Sailfish Browser"],f],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[u,f],[/(dolfin)\/([\w\.]+)/i],[[u,"Dolphin"],f],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[u,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[u,"Chrome"],f],[/(coast)\/([\w\.]+)/i],[[u,"Opera Coast"],f],[/fxios\/([\w\.-]+)/i],[f,[u,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[f,u],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[u,"GSA"],f],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[u,[f,w.str,S.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape)\/([\w\.-]+)/i],[[u,"Netscape"],f],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[u,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,b.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[p,/ower/,"",b.lowerize]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[p,b.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[c,d,[l,y]],[/applecoremedia\/[\w\.]+ \((ipad)/],[c,[d,"Apple"],[l,y]],[/(apple\s{0,1}tv)/i],[[c,"Apple TV"],[d,"Apple"],[l,m]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[d,c,[l,y]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[c,[d,"Amazon"],[l,y]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[c,w.str,S.device.amazon.model],[d,"Amazon"],[l,g]],[/android.+aft([bms])\sbuild/i],[c,[d,"Amazon"],[l,m]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[c,d,[l,g]],[/\((ip[honed|\s\w*]+);/i],[c,[d,"Apple"],[l,g]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[d,c,[l,g]],[/\(bb10;\s(\w+)/i],[c,[d,"BlackBerry"],[l,g]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[c,[d,"Asus"],[l,y]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[d,"Sony"],[c,"Xperia Tablet"],[l,y]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,"Sony"],[l,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[d,c,[l,h]],[/android.+;\s(shield)\sbuild/i],[c,[d,"Nvidia"],[l,h]],[/(playstation\s[34portablevi]+)/i],[c,[d,"Sony"],[l,h]],[/(sprint\s(\w+))/i],[[d,w.str,S.device.sprint.vendor],[c,w.str,S.device.sprint.model],[l,g]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[d,[c,/_/g," "],[l,g]],[/(nexus\s9)/i],[c,[d,"HTC"],[l,y]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[c,[d,"Huawei"],[l,g]],[/android.+(bah2?-a?[lw]\d{2})/i],[c,[d,"Huawei"],[l,y]],[/(microsoft);\s(lumia[\s\w]+)/i],[d,c,[l,g]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[c,[d,"Microsoft"],[l,h]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,"Microsoft"],[l,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[c,[d,"Motorola"],[l,g]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[c,[d,"Motorola"],[l,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[d,b.trim],[c,b.trim],[l,m]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,"Samsung"],[l,m]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,m]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[d,"Samsung"],c,[l,y]],[/smart-tv.+(samsung)/i],[d,[l,m],c],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[d,"Samsung"],c,[l,g]],[/sie-(\w*)/i],[c,[d,"Siemens"],[l,g]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[d,"Nokia"],c,[l,g]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,y]],[/android.+([vl]k\-?\d{3})\s+build/i],[c,[d,"LG"],[l,y]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[d,"LG"],c,[l,y]],[/(lg) netcast\.tv/i],[d,c,[l,m]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[c,[d,"LG"],[l,g]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[d,c,[l,y]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[c,[d,"Lenovo"],[l,y]],[/(lenovo)[_\s-]?([\w-]+)/i],[d,c,[l,g]],[/linux;.+((jolla));/i],[d,c,[l,g]],[/((pebble))app\/[\d\.]+\s/i],[d,c,[l,v]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[d,c,[l,g]],[/crkey/i],[[c,"Chromecast"],[d,"Google"],[l,m]],[/android.+;\s(glass)\s\d/i],[c,[d,"Google"],[l,v]],[/android.+;\s(pixel c)[\s)]/i],[c,[d,"Google"],[l,y]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[c,[d,"Google"],[l,g]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,g]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,y]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[c,[d,"Meizu"],[l,g]],[/(mz)-([\w-]{2,})/i],[[d,"Meizu"],c,[l,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[c,[d,"OnePlus"],[l,g]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[c,[d,"RCA"],[l,y]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[c,[d,"Dell"],[l,y]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[c,[d,"Verizon"],[l,y]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[d,"Barnes & Noble"],c,[l,y]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[c,[d,"NuVision"],[l,y]],[/android.+;\s(k88)\sbuild/i],[c,[d,"ZTE"],[l,y]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[c,[d,"Swiss"],[l,g]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[c,[d,"Swiss"],[l,y]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[c,[d,"Zeki"],[l,y]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[d,"Dragon Touch"],c,[l,y]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[c,[d,"Insignia"],[l,y]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[c,[d,"NextBook"],[l,y]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[d,"Voice"],c,[l,g]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[d,"LvTel"],c,[l,g]],[/android.+;\s(PH-1)\s/i],[c,[d,"Essential"],[l,g]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[c,[d,"Envizen"],[l,y]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[d,c,[l,y]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[c,[d,"MachSpeed"],[l,y]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[d,c,[l,y]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[c,[d,"Rotor"],[l,y]],[/android.+(KS(.+))\s+build/i],[c,[d,"Amazon"],[l,y]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[d,c,[l,y]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,b.lowerize],d,c],[/[\s\/\(](smart-?tv)[;\)]/i],[[l,m]],[/(android[\w\.\s\-]{0,9});.+build/i],[c,[d,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[u,f],[/rv\:([\w\.]{1,9}).+(gecko)/i],[f,u]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[u,f],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[u,[f,w.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[u,"Windows"],[f,w.str,S.os.windows.version]],[/\((bb)(10);/i],[[u,"BlackBerry"],f],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[u,f],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[u,"Symbian"],f],[/\((series40);/i],[u],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[u,"Firefox OS"],f],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[u,f],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[u,"Chromium OS"],f],[/(sunos)\s?([\w\.\d]*)/i],[[u,"Solaris"],f],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[u,f],[/(haiku)\s(\w+)/i],[u,f],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[u,"Mac OS"],[f,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[u,f]]},E=function(e,t){if("object"==typeof e&&(t=e,e=i),!(this instanceof E))return new E(e,t).getResult();var r=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?b.extend(x,t):x;return this.getBrowser=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.browser),e.major=b.major(e.version),e},this.getCPU=function(){var e={architecture:i};return w.rgx.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return w.rgx.call(e,r,n.device),e},this.getEngine=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.engine),e},this.getOS=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.os),e},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 r},this.setUA=function(e){return r=e,this},this};E.VERSION="0.7.21",E.BROWSER={NAME:u,MAJOR:"major",VERSION:f},E.CPU={ARCHITECTURE:p},E.DEVICE={MODEL:c,VENDOR:d,TYPE:l,CONSOLE:h,MOBILE:g,SMARTTV:m,TABLET:y,WEARABLE:v,EMBEDDED:"embedded"},E.ENGINE={NAME:u,VERSION:f},E.OS={NAME:u,VERSION:f},void 0!==t?(e.exports&&(t=e.exports=E),t.UAParser=E):(n=function(){return E}.call(t,r,t,e))===i||(e.exports=n);var _=o&&(o.jQuery||o.Zepto);if(_&&!_.ua){var O=new E;_.ua=O.getResult(),_.ua.get=function(){return O.getUA()},_.ua.set=function(e){O.setUA(e);var t=O.getResult();for(var r in t)_.ua[r]=t[r]}}}("object"==typeof window?window:this)},2015(e){e.exports=require("react")},2326(e){e.exports=require("react-dom")}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t,r){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var p=l(8156),h=l.n(p);let g=function(e){return e.DRAWING="drawing",e.HIGHLIGHT="highlight",e.NONE="none",e.REGION="region",e}({});function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(null,arguments)}function m(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function v(e){return!!e&&!!e[Q]}function b(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[J]||!!e.constructor[J]||_(e)||O(e))}function w(e,t){0===S(e)?ee(e).forEach(function(r){return t(r,e[r],e)}):e.forEach(function(r,n){return t(n,r,e)})}function S(e){var t=e[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_(e)?2:O(e)?3:0}function x(e,t){return 2===S(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function _(e){return $&&e instanceof Map}function O(e){return Y&&e instanceof Set}function C(e){return e.o||e.t}function k(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var r=Object.create(Object.getPrototypeOf(e));return w(e,function(n){if(n!==Q){var o=Object.getOwnPropertyDescriptor(e,n),i=o.value;o.get&&(t||m(1),i=o.get.call(e)),o.enumerable?r[n]=i:Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0})}}),r}function A(e,t){v(e)||Object.isFrozen(e)||!b(e)||(S(e)>1&&(e.set=e.add=e.clear=e.delete=T),Object.freeze(e),t&&w(e,function(e,t){return A(t,!0)}))}function T(){m(2)}function D(e){var t=te[e];return t||m(19,e),t}function I(){return G}function P(e,t){t&&(D("Patches"),e.u=[],e.s=[],e.v=t)}function L(e){M(e),e.p.forEach(j),e.p=null}function M(e){e===G&&(G=e.l)}function R(e){return G={p:[],l:G,h:e,m:!0,_:0}}function j(e){var t=e[Q];0===t.i||1===t.i?t.j():t.O=!0}function N(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||D("ES5").S(t,e,n),n?(r[Q].P&&(L(t),m(4)),b(e)&&(e=F(t,e),t.l||U(t,e)),t.u&&D("Patches").M(r[Q],e,t.u,t.s)):e=F(t,r,[]),L(t),t.u&&t.v(t.u,t.s),e!==Z?e:void 0}function F(e,t,r){if(Object.isFrozen(t))return t;var n=t[Q];if(!n)return w(t,function(o,i){return B(e,n,t,o,i,r)}),t;if(n.A!==e)return t;if(!n.P)return U(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=k(n.k,!0):n.o;w(o,function(t,i){return B(e,n,o,t,i,r)}),U(e,o,!1),r&&e.u&&D("Patches").R(n,r,e.u,e.s)}return n.o}function B(e,t,r,n,o,i){if(v(o)){var a=F(e,o,i&&t&&3!==t.i&&!x(t.D,n)?i.concat(n):void 0);if(c=n,u=a,2===(l=S(s=r))?s.set(c,u):3===l?(s.delete(c),s.add(u)):s[c]=u,!v(a))return;e.m=!1}var s,c,u,l;if((!t||!E(o,function(e,t){return 2===S(e)?e.get(t):e[t]}(t.t,n)))&&b(o)){if(!e.h.N&&e._<1)return;F(e,o),t&&t.A.l||U(e,o)}}function U(e,t,r){void 0===r&&(r=!1),e.h.N&&e.m&&A(t,r)}function K(e,t){var r=e[Q],n=Reflect.getOwnPropertyDescriptor(r?C(r):e,t);return n&&n.value}function H(e){if(!e.P){if(e.P=!0,0===e.i||1===e.i){var t=e.o=k(e.t);w(e.p,function(e,r){t[e]=r}),e.p=void 0}e.l&&H(e.l)}}function z(e){e.o||(e.o=k(e.t))}function V(e,t,r){var n=_(t)?D("MapSet").T(t,r):O(t)?D("MapSet").F(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:I(),P:!1,I:!1,D:{},l:t,t:e,k:null,p:{},o:null,j:null,C:!1},o=n,i=re;r&&(o=[n],i=ne);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):D("ES5").J(t,r);return(r?r.A:I()).p.push(n),n}var q,G,W="undefined"!=typeof Symbol,$="undefined"!=typeof Map,Y="undefined"!=typeof Set,X="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Z=W?Symbol("immer-nothing"):((q={})["immer-nothing"]=!0,q),J=W?Symbol("immer-draftable"):"__$immer_draftable",Q=W?Symbol("immer-state"):"__$immer_state",ee=(W&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),te={},re={get:function(e,t){if(t===Q)return e;var r=e.p;if(!e.P&&x(r,t))return r[t];var n=C(e)[t];if(e.I||!b(n))return n;if(e.P){if(n!==K(e.t,t))return n;r=e.o}return r[t]=V(e.A.h,n,e)},has:function(e,t){return t in C(e)},ownKeys:function(e){return Reflect.ownKeys(C(e))},set:function(e,t,r){if(!e.P){var n=K(e.t,t);if(r?E(n,r)||r===e.p[t]:E(n,r)&&t in e.t)return!0;z(e),H(e)}return e.D[t]=!0,e.o[t]=r,!0},deleteProperty:function(e,t){return void 0!==K(e.t,t)||t in e.t?(e.D[t]=!1,z(e),H(e)):e.D[t]&&delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=C(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&(n.writable=!0,n.configurable=1!==e.i||"length"!==t),n},defineProperty:function(){m(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){m(12)}},ne={};w(re,function(e,t){ne[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ne.deleteProperty=function(e,t){return re.deleteProperty.call(this,e[0],t)},ne.set=function(e,t,r){return re.set.call(this,e[0],t,r,e[0])};var oe=function(){function e(e){this.g=X,this.N=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,r){if("function"==typeof e&&"function"!=typeof t){var n=t;t=e;var o=this;return function(e){var r=this;void 0===e&&(e=n);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return o.produce(e,function(e){var n;return(n=t).call.apply(n,[r,e].concat(a))})}}var i;if("function"!=typeof t&&m(6),void 0!==r&&"function"!=typeof r&&m(7),b(e)){var a=R(this),s=V(this,e,void 0),c=!0;try{i=t(s),c=!1}finally{c?L(a):M(a)}return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return P(a,r),N(e,a)},function(e){throw L(a),e}):(P(a,r),N(i,a))}if((i=t(e))!==Z)return void 0===i&&(i=e),this.N&&A(i,!0),i},t.produceWithPatches=function(e,t){var r,n,o=this;return"function"==typeof e?function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return o.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(n))})}:[this.produce(e,t,function(e,t){r=e,n=t}),r,n]},t.createDraft=function(e){b(e)||m(8);var t=R(this),r=V(this,e,void 0);return r[Q].C=!0,M(t),r},t.finishDraft=function(e,t){var r=(e&&e[Q]).A;return P(r,t),N(void 0,r)},t.setAutoFreeze=function(e){this.N=e},t.setUseProxies=function(e){X||m(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=D("Patches").U;return v(e)?o(e,t):this.produce(e,function(e){return o(e,t.slice(r+1))})},e}(),ie=new oe,ae=ie.produce;ie.produceWithPatches.bind(ie),ie.setAutoFreeze.bind(ie),ie.setUseProxies.bind(ie),ie.applyPatches.bind(ie),ie.createDraft.bind(ie),ie.finishDraft.bind(ie);const se=ae;var ce=l(9423),ue=function(){return Math.random().toString(36).substring(7).split("").join(".")},le={INIT:"@@redux/INIT"+ue(),REPLACE:"@@redux/REPLACE"+ue(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ue()}};function de(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(de)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++)(0,t[r])();return e}return f({type:le.INIT}),(n={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,f({type:le.REPLACE})}})[ce.A]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[ce.A]=function(){return this},e},n}function fe(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function pe(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var i,a=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:le.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:le.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+le.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(r)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var n=!1,o={},s=0;s<a.length;s++){var c=a[s],u=r[c],l=e[c],d=u(l,t);if(void 0===d){var f=fe(c,t);throw new Error(f)}o[c]=d,n=n||d!==l}return(n=n||a.length!==Object.keys(e).length)?o:e}}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ge(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r}function ye(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function me(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(r,!0).forEach(function(t){he(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r,{dispatch:n=ye.apply(void 0,i)(r.dispatch)})}}}function ve(e,t){return e===t}function be(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}!function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n]}(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ve,r=null,n=null;return function(){return function(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}(t,r,arguments)||(n=e.apply(null,arguments)),r=arguments,n}});var we=be();we.withExtraArgument=be;const Se=we;function xe(){return xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xe.apply(this,arguments)}var Ee="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ye:ye.apply(null,arguments)};function _e(e){void 0===e&&(e={});var t=e,r=t.thunk,n=void 0===r||r,o=(t.immutableCheck,t.serializableCheck,[]);return n&&(function(e){return"boolean"==typeof e}(n)?o.push(Se):o.push(Se.withExtraArgument(n.extraArgument))),o}function Oe(e,t){function r(){if(t){var r=t.apply(void 0,arguments);if(!r)throw new Error("prepareAction did not return an object");return xe({type:e,payload:r.payload},"meta"in r&&{meta:r.meta},{},"error"in r&&{error:r.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(t){return t.type===e},r}function Ce(e,t){var r="function"==typeof t?function(e){var t={},r={addCase:function(e,n){var o="string"==typeof e?e:e.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=n,r}};return e(r),t}(t):t;return function(t,n){return void 0===t&&(t=e),se(t,function(e){var t=r[n.type];return t?t(e,n):void 0})}}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ke=["name","message","stack","code"],Ae=function(e){this.value=e},Te=function(e){if("object"==typeof e&&null!==e){var t={},r=ke,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};function De(e,t,r){var n=Oe(e+"/fulfilled",function(e,t,r){return{payload:e,meta:{arg:r,requestId:t}}}),o=Oe(e+"/pending",function(e,t){return{payload:void 0,meta:{arg:t,requestId:e}}}),i=Oe(e+"/rejected",function(e,t,r,n){var o=!!e&&"AbortError"===e.name,i=!!e&&"ConditionError"===e.name;return{payload:n,error:Te(e||"Rejected"),meta:{arg:r,requestId:t,aborted:o,condition:i}}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return e.prototype.abort=function(){},e}();return y(function(e){return function(s,c,u){var l,d=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),f=new a,p=new Promise(function(e,t){return f.signal.addEventListener("abort",function(){return t({name:"AbortError",message:l||"Aborted"})})});return y(function(){try{var a,l=function(e){return h?e:(r&&!r.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a)},h=!1,g=function(l,h){try{var g=function(){if(r&&r.condition&&!1===r.condition(e,{getState:c,extra:u}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return s(o(d,e)),Promise.resolve(Promise.race([p,Promise.resolve(t(e,{dispatch:s,getState:c,extra:u,requestId:d,signal:f.signal,rejectWithValue:function(e){return new Ae(e)}})).then(function(t){return t instanceof Ae?i(null,d,e,t.value):n(t,d,e)})])).then(function(e){a=e})}()}catch(e){return h(e)}return g&&g.then?g.then(void 0,h):g}(0,function(t){a=i(t,d,e)});return Promise.resolve(g&&g.then?g.then(l):l(g))}catch(e){return Promise.reject(e)}}(),{abort:function(e){l=e,f.abort()}})}},{pending:o,rejected:i,fulfilled:n})}!function(){function e(e,t){var r=e[Q];if(r&&!r.$){r.$=!0;var n=e[t];return r.$=!1,n}return e[t]}function t(e){e.P||(e.P=!0,e.l&&t(e.l))}function r(e){e.o||(e.o=n(e.t))}function n(e){var t=e&&e[Q];if(t){t.$=!0;var r=k(t.k,!0);return t.$=!1,r}return k(e)}function o(e){for(var r=e.length-1;r>=0;r--){var n=e[r][Q];if(!n.P)switch(n.i){case 5:a(n)&&t(n);break;case 4:i(n)&&t(n)}}}function i(e){for(var t=e.t,r=e.k,n=Object.keys(r),o=n.length-1;o>=0;o--){var i=n[o],a=t[i];if(void 0===a&&!x(t,i))return!0;var s=r[i],c=s&&s[Q];if(c?c.t!==a:!E(s,a))return!0}return n.length!==Object.keys(t).length}function a(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}function s(e){e.O&&m(3,JSON.stringify(C(e)))}var c={};!function(e,t){te[e]=t}("ES5",{J:function(o,i){var a=Array.isArray(o),u=n(o);w(u,function(n){!function(n,o,i){var a=c[o];a?a.enumerable=i:c[o]=a={enumerable:i,get:function(){return function(t,n){s(t);var o=e(C(t),n);return t.$?o:o===e(t.t,n)&&b(o)?(r(t),t.o[n]=V(t.A.h,o,t)):o}(this[Q],o)},set:function(n){!function(n,o,i){if(s(n),n.D[o]=!0,!n.P){if(E(i,e(C(n),o)))return;t(n),r(n)}n.o[o]=i}(this[Q],o,n)}},Object.defineProperty(n,o,a)}(u,n,a||function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!(!r||!r.enumerable)}(o,n))});var l={i:a?5:4,A:i?i.A:I(),P:!1,$:!1,I:!1,D:{},l:i,t:o,k:u,o:null,O:!1,C:!1};return Object.defineProperty(u,Q,{value:l,writable:!0}),u},K:t,S:function(e,r,n){e.p.forEach(function(e){e[Q].$=!0}),n?v(r)&&r[Q].A===e&&o(e.p):(e.u&&function e(r){if(r&&"object"==typeof r){var n=r[Q];if(n){var o=n.t,i=n.k,s=n.D,c=n.i;if(4===c)w(i,function(r){r!==Q&&(void 0!==o[r]||x(o,r)?s[r]||e(i[r]):(s[r]=!0,t(n)))}),w(o,function(e){void 0!==i[e]||x(i,e)||(s[e]=!1,t(n))});else if(5===c){if(a(n)&&(t(n),s.length=!0),i.length<o.length)for(var u=i.length;u<o.length;u++)s[u]=!1;else for(var l=o.length;l<i.length;l++)s[l]=!0;for(var d=Math.min(i.length,o.length),f=0;f<d;f++)void 0===s[f]&&e(i[f])}}}}(e.p[0]),o(e.p))}})}();const Ie=-1;let Pe=function(e){return e.FRAME="frame",e.PAGE="page",e}({});const Le=({annotations:e})=>e.activeId,Me=({annotations:e},t)=>e.byId[t],Re=({annotations:e})=>[...Object.values(e.byId)],je=(e,t)=>{const r=Re(e);return t===Ie?r:r.filter(e=>h()(e,"target.location.value")===t)},Ne=({annotations:e})=>e.isInitialized,Fe=e=>e.options.apiHost,Be=e=>e.options.viewMode,Ue=e=>e.options.fileId,Ke=e=>e.options.fileVersionId,He=e=>e.options.isCurrentFileVersion,ze=e=>e.options.permissions,Ve=e=>e.options.rotation,qe=e=>e.options.scale,Ge=e=>e.options.token,We=(e,t)=>h()((e=>e.options.features)(e),t,!1);function $e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Xe=De("CREATE_ANNOTATION",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=Ue(i),s=Ke(i),c=ze(i);return n.addEventListener("abort",()=>{o.destroy()}),new Promise((t,r)=>{o.createAnnotation(a,s,e,c,t,r)})}),Ze=De("FETCH_ANNOTATIONS",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=Ue(i),s=Ke(i),c=ze(i);n.addEventListener("abort",()=>{o.destroy()});const u=We({options:r().options},"isThreadedAnnotation");return new Promise((e,t)=>{o.getAnnotations(a,s,c,e,t,1e3,!1,u)})}),Je=De("CREATE_REPLY",async({annotationId:e,message:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getAnnotationsAPI(),a=n(),s=Ue(a),c=ze(a),u=Me(a,e),l=Ye(Ye({},c),u?.permissions);o.addEventListener("abort",()=>{i.destroy()});const d=await new Promise((r,n)=>{i.createAnnotationReply(s,e,l,t,r,n)});return{annotationId:e,reply:d}}),Qe=De("DELETE_ANNOTATION",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=Ue(i),s=ze(i),c=Me(i,e),u=Ye(Ye({},s),c?.permissions);return n.addEventListener("abort",()=>{o.destroy()}),await new Promise((t,r)=>{o.deleteAnnotation(a,e,u,t,r)}),e}),et=De("UPDATE_ANNOTATION",async({annotationId:e,payload:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getAnnotationsAPI(),a=n(),s=Ue(a),c=ze(a),u=Me(a,e),l=Ye(Ye({},c),u?.permissions);return o.addEventListener("abort",()=>{i.destroy()}),new Promise((r,n)=>{i.updateAnnotation(s,e,l,t,r,n)})}),tt=De("UPDATE_REPLY",async({annotationId:e,replyId:t,payload:r},{extra:n,getState:o,signal:i})=>{const a=n.api.getThreadedCommentsAPI(),s=o(),c=Ue(s),u=Me(s,e),l=u?.replies?.find(e=>e.id===t);if(!l)throw new Error(`updateReplyAction: reply ${t} not found on annotation ${e}`);return i.addEventListener("abort",()=>{a.destroy()}),{annotationId:e,reply:await new Promise((e,n)=>{a.updateComment({commentId:t,errorCallback:n,fileId:c,message:r.message,permissions:l.permissions??{},status:r.status,successCallback:e})})}}),rt=De("DELETE_REPLY",async({annotationId:e,replyId:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getThreadedCommentsAPI(),a=n(),s=Ue(a),c=Me(a,e),u=c?.replies?.find(e=>e.id===t);if(!u)throw new Error(`deleteReplyAction: reply ${t} not found on annotation ${e}`);return o.addEventListener("abort",()=>{i.destroy()}),await new Promise((e,r)=>{i.deleteComment({commentId:t,errorCallback:r,fileId:s,permissions:u.permissions??{},successCallback:e})}),{annotationId:e,replyId:t}}),nt=Oe("APPLY_SIDEBAR_ANNOTATION_UPDATE"),ot=Oe("APPLY_SIDEBAR_REPLY_CREATE"),it=Oe("APPLY_SIDEBAR_REPLY_DELETE"),at=Oe("APPLY_SIDEBAR_REPLY_UPDATE"),st=Oe("REMOVE_ANNOTATION"),ct=Oe("SET_ACTIVE_ANNOTATION_ID"),ut=Oe("SET_IS_INITIALIZED");function lt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var dt,ft=new Uint8Array(16);function pt(){if(!dt&&!(dt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dt(ft)}const ht=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var gt=[],yt=0;yt<256;++yt)gt.push((yt+256).toString(16).substr(1));const mt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(gt[e[t+0]]+gt[e[t+1]]+gt[e[t+2]]+gt[e[t+3]]+"-"+gt[e[t+4]]+gt[e[t+5]]+"-"+gt[e[t+6]]+gt[e[t+7]]+"-"+gt[e[t+8]]+gt[e[t+9]]+"-"+gt[e[t+10]]+gt[e[t+11]]+gt[e[t+12]]+gt[e[t+13]]+gt[e[t+14]]+gt[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&ht.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},vt=function(e,t,r){var n=(e=e||{}).random||(e.rng||pt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return mt(n)},bt=["paths"],wt=["path_groups"],St=["target"];function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _t(e){let{paths:t}=e,r=lt(e,bt);return Et({clientId:vt(),paths:t.map(e=>Et({clientId:vt()},e))},r)}function Ot(e){const{target:{path_groups:t}}=e,r=lt(e.target,wt),n=lt(e,St);return Et({target:Et({path_groups:t.map(e=>_t(e))},r)},n)}function Ct({height:e,width:t,x:r,y:n}){return{x:r+t/2,y:n+e/2}}const kt=e=>{if(!e||!e.length)return"";const t=e.map(({x:e,y:t},r,n)=>{if(0===r)return`M ${e} ${t}`;const o=n[r-1],i=n[r+1];return o&&i?`C ${(e+o.x)/2} ${(t+o.y)/2}, ${e} ${t}, ${(e+i.x)/2} ${(t+i.y)/2}`:""}).join(" ").trim();return t};function At(e){let t=0,r=0,n=Number.MAX_VALUE,o=Number.MAX_VALUE;return e.forEach(({paths:e})=>{e.forEach(({points:e})=>{e.forEach(({x:e,y:i})=>{t=Math.max(t,e),r=Math.max(r,i),n=Math.min(n,e),o=Math.min(o,i)})})}),{height:Math.max(0,r-o),width:Math.max(0,t-n),x:n===Number.MAX_VALUE?0:n,y:o===Number.MAX_VALUE?0:o}}function Tt(e){return"drawing"===e?.target?.type}function Dt(e){return Ct(At(e))}const It=Oe("SET_FIlE_ID"),Pt=Oe("SET_FILE_VERSION_ID"),Lt=Oe("SET_PERMISSIONS"),Mt=Oe("SET_ROTATION"),Rt=Oe("SET_SCALE"),jt=Oe("SET_VIEW_MODE");function Nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Bt=pe({activeId:Ce(null,e=>e.addCase(Xe.fulfilled,()=>null).addCase(Qe.fulfilled,(e,{payload:t})=>e===t?null:e).addCase(st,(e,{payload:t})=>e===t?null:e).addCase(ct,(e,{payload:t})=>t).addCase(jt,(e,{payload:t})=>"boundingBoxes"===t?null:e)),allIds:Ce([],e=>e.addCase(Xe.fulfilled,(e,{payload:{id:t}})=>{e.push(t)}).addCase(Qe.fulfilled,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(st,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(Ze.fulfilled,(e,{payload:t})=>{t.entries.forEach(({id:t})=>-1===e.indexOf(t)&&e.push(t))})),byId:Ce({},e=>e.addCase(Xe.fulfilled,(e,{payload:t})=>{e[t.id]=Tt(t)?Ot(t):t}).addCase(Je.fulfilled,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&(n.replies=[...n.replies??[],r])}).addCase(Qe.fulfilled,(e,{payload:t})=>{delete e[t]}).addCase(st,(e,{payload:t})=>{delete e[t]}).addCase(et.fulfilled,(e,{payload:t})=>{e[t.id]=Tt(t)?Ot(t):t}).addCase(tt.fulfilled,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.map(e=>e.id===r.id?r:e))}).addCase(rt.fulfilled,(e,{payload:{annotationId:t,replyId:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.filter(e=>e.id!==r))}).addCase(nt,(e,{payload:t})=>{const r=e[t.id];r&&Object.entries(t).forEach(([e,t])=>{void 0!==t&&(r[e]=t)})}).addCase(ot,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];if(!n)return;const o=n.replies??[];o.some(e=>e.id===r.id)||(n.replies=[...o,r])}).addCase(at,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.map(e=>e.id===r.id?Ft(Ft({},e),r):e))}).addCase(it,(e,{payload:{annotationId:t,replyId:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.filter(e=>e.id!==r))}).addCase(Ze.fulfilled,(e,{payload:t})=>{t.entries.forEach(t=>{e[t.id]=Tt(t)?Ot(t):t})})),isInitialized:Ce(!1,e=>{e.addCase(ut,()=>!0)})}),Ut="#fff",Kt="#0061d5",Ht="#909090",zt=Oe("SET_COLOR"),Vt=Oe("TOGGLE_ANNOTATION_MODE"),qt=Ce({color:Kt,mode:g.NONE},e=>e.addCase(zt,(e,{payload:t})=>{e.color=t}).addCase(Vt,(e,{payload:t})=>{e.mode=t}));let Gt=function(e){return e.init="init",e.pending="pending",e.rejected="rejected",e.staged="staged",e.started="started",e}({});const Wt=Oe("RESET_CREATOR"),$t=Oe("SET_CREATOR_CURSOR"),Yt=Oe("SET_CREATOR_MESSAGE"),Xt=Oe("SET_CREATOR_REFERENCE_ID"),Zt=Oe("SET_CREATOR_STAGED"),Jt=Oe("SET_CREATOR_STATUS"),Qt={cursor:0,error:null,message:"",referenceId:null,staged:null,status:Gt.init},er=Ce(Qt,e=>e.addCase(Xe.fulfilled,()=>Qt).addCase(Xe.pending,e=>{e.error=null,e.status=Gt.pending}).addCase(Xe.rejected,(e,{error:t})=>{e.error=t,e.status=Gt.rejected}).addCase(Wt,e=>{e.message="",e.referenceId=null,e.staged=null,e.status=Gt.init}).addCase(Yt,(e,{payload:t})=>{e.message=t}).addCase(Xt,(e,{payload:t})=>{e.referenceId=t}).addCase(Zt,(e,{payload:t})=>{e.staged=t}).addCase(Jt,(e,{payload:t})=>{e.status=t}).addCase($t,(e,{payload:t})=>{e.cursor=t}).addCase(Vt,()=>Qt)),tr=Oe("ADD_DRAWING_PATH_GROUP",e=>({payload:_t(e)})),rr=Oe("REDO_DRAWING_PATH_GROUP"),nr=Oe("RESET_DRAWING"),or=Oe("SET_DRAWING_LOCATION"),ir=Oe("UNDO_DRAWING_PATH_GROUP"),ar={drawnPathGroups:[],location:0,stashedPathGroups:[]},sr=Ce(ar,e=>e.addCase(Xe.fulfilled,()=>ar).addCase(tr,(e,{payload:t})=>{e.drawnPathGroups.push(t),e.stashedPathGroups=[]}).addCase(rr,e=>{const t=e.stashedPathGroups.pop();t&&e.drawnPathGroups.push(t)}).addCase(Wt,()=>ar).addCase(nr,()=>ar).addCase(or,(e,{payload:t})=>{e.location!==t&&(e.location=t,e.drawnPathGroups=[])}).addCase(Vt,()=>ar).addCase(ir,e=>{const t=e.drawnPathGroups.pop();t&&e.stashedPathGroups.push(t)}));let cr=function(e){return e.highlight="highlight",e.region="region",e}({});const ur=e=>{let t=Number.MAX_VALUE,r=Number.MAX_VALUE,n=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.forEach(({height:e,width:i,x:a,y:s})=>{const c=a+i,u=s+e;0!==i&&0!==e&&(a<t&&(t=a),s<r&&(r=s),c>n&&(n=c),u>o&&(o=u))}),{x:t,y:r,width:n-t,height:o-r}};function lr(e){return e?.target?.type===cr.highlight}const dr=(e,t,r)=>Math.max(Math.round(e*r),Math.round(t*r),1),fr=e=>{const t=[];return((e,t=.1)=>{const r=[];return e.forEach(e=>{const n=r.pop();if(!n)return void r.push(e);const{width:o,height:i,x:a,y:s}=n,{width:c,height:u,x:l,y:d}=e,f=dr(o,c,t),p=dr(i,u,t);Math.abs(a-l)<=f&&Math.abs(s-d)<=p?r.push(i*o>u*c?n:e):(r.push(n),r.push(e))}),r})(e).forEach(e=>{const{height:r,width:n,x:o,y:i}=e;if(0===n||0===r)return;const a=t.pop();if(!a)return void t.push(e);const{height:s,width:c,x:u,y:l}=a,d=u+c,f=dr(c,n,.3),p=dr(s,r,.6),h=Math.abs(o-d)<f,g=Math.abs(i-l)<p;h&&g?t.push(ur([a,e])):(t.push(a),t.push(e))}),t},pr={height:100,width:100},hr=({x:e,y:t},r)=>({x:e,y:r>0?r-t:t}),gr=({x:e,y:t},r)=>{const n=r*Math.PI/180,o=Math.cos(n),i=Math.sin(n);return{x:e*o-t*i,y:e*i+t*o}};function yr({x:e,y:t},r){const{x:n,y:o}=function(e,t){const{height:r,width:n}=e,{height:o,width:i}=pr,a=t%180==0,s=t%360==0,c=function(e,t){const{height:r,width:n}=e;switch(t){case-90:return{dx:r};case-180:return{dx:n,dy:r};case-270:return{dy:n}}return{dx:0,dy:0}}(pr,t),u=function(e,t){const[r,n,o,i]=(e=>{const{height:t,width:r,x:n,y:o}=e;return[{x:n,y:o},{x:n+r,y:o},{x:n+r,y:o+t},{x:n,y:o+t}]})(e);switch(t){case-90:return n;case-180:return o;case-270:return i;default:return r}}(e,t);if(s)return e;const l=hr(u,o),d=(({x:e,y:t},{dx:r=0,dy:n=0})=>({x:e+r,y:t+n}))(gr(l,-t),c),{x:f,y:p}=hr(d,a?o:i);return{height:a?r:n,width:a?n:r,x:f,y:p}}({height:0,width:0,x:e,y:t},r);return{x:n,y:o}}function mr(e,t,r,n){if(!r)return[e,t];const o=r.getBoundingClientRect();if(!n)return[e-o.left,t-o.top];const i=o.left+o.width/2,a=o.top+o.height/2,s=gr({x:e-i,y:t-a},-n);return[s.x+r.offsetWidth/2,s.y+r.offsetHeight/2]}const vr=({height:e,left:t,top:r,width:n})=>({height:e,width:n,x:t,y:r}),br=Oe("SET_SELECTION",e=>{if(!e)return{payload:null};const{containerEl:t,containerRect:r,hasError:n,location:o,range:i,rotation:a}=e;let s=Array.from(i.getClientRects());s.length||(s=(e=>{const t=document.createNodeIterator(e.commonAncestorContainer,NodeFilter.SHOW_ALL,function(){return NodeFilter.FILTER_ACCEPT},!1),r=document.createRange(),n=[];let o=t.nextNode();for(;o;)if(0!==n.length||o===e.startContainer){if(o.nodeType===Node.TEXT_NODE&&(r.selectNodeContents(o),o===e.startContainer&&r.setStart(o,e.startOffset),o===e.endContainer&&r.setEnd(o,e.endOffset),n.push(r.getBoundingClientRect())),o===e.endContainer)break;o=t.nextNode()}else o=t.nextNode();return n})(i));const c=s.map(vr);if(a&&t){const e=c.map(e=>{const[r,n]=mr(e.x,e.y,t,a),[o,i]=mr(e.x+e.width,e.y+e.height,t,a);return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}});return{payload:{containerRect:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight},hasError:n,location:o,popupRect:ur(c),rects:fr(e)}}}return{payload:{containerRect:vr(r),hasError:n,location:o,rects:fr(c)}}}),wr=Oe("SET_IS_PROMOTING"),Sr=Oe("SET_IS_SELECTING"),xr=Ce({isPromoting:!1,isSelecting:!1,selection:null},e=>e.addCase(wr,(e,{payload:t})=>{e.isPromoting=t}).addCase(Sr,(e,{payload:t})=>{e.isSelecting=t}).addCase(br,(e,{payload:t})=>{e.selection=t}).addCase(Xe.fulfilled,e=>{e.isPromoting=!1}).addCase(Wt,e=>{e.isPromoting=!1}).addCase(Vt,e=>{e.isPromoting=!1}).addCase(Jt,e=>{e.selection=null})),Er=Oe("SET_BOUNDING_BOX_HIGHLIGHTS"),_r=Oe("SET_SELECTED_BOUNDING_BOX_HIGHLIGHT"),Or=Oe("NAVIGATE_BOUNDING_BOX_HIGHLIGHT"),Cr=Ce({boundingBoxes:[],selectedId:null},e=>{e.addCase(Er,(e,{payload:t})=>{e.boundingBoxes=t,e.selectedId=null}).addCase(_r,(e,{payload:t})=>{e.selectedId=t}).addCase(Or,(e,{payload:t})=>{e.selectedId=t}).addCase(jt,(e,{payload:t})=>{"annotations"===t&&(e.selectedId=null)})}),kr=Ce({apiHost:"",features:{},fileId:null,fileVersionId:null,isCurrentFileVersion:!0,permissions:{},rotation:0,scale:1,token:"",viewMode:"annotations"},e=>e.addCase(It,(e,{payload:t})=>{e.fileId=t}).addCase(Pt,(e,{payload:t})=>{e.fileVersionId=t}).addCase(Lt,(e,{payload:t})=>{e.permissions=t}).addCase(Mt,(e,{payload:t})=>{e.rotation=t}).addCase(Rt,(e,{payload:t})=>{e.scale=t}).addCase(jt,(e,{payload:t})=>{e.viewMode=t})),Ar=De("FETCH_COLLABORATORS",async(e="",{extra:t,getState:r,signal:n})=>{const o=t.api.getCollaboratorsAPI(),i=r(),a=Ue(i);return n.addEventListener("abort",()=>{o.destroy()}),new Promise((t,r)=>{o.getFileCollaborators(a,t,r,{filter_term:e,include_groups:!1,include_uploader_collabs:!1})})}),Tr=Ce({collaborators:[]},e=>e.addCase(Ar.fulfilled,(e,{payload:t})=>{e.collaborators=t.entries}).addCase(Ar.rejected,e=>{e.collaborators=[]}));var Dr=l(3950),Ir=l.n(Dr),Pr=l(7007),Lr=function(e){return e.ACTIVE_SET="annotations_active_set",e.ANNOTATION_REMOVE="annotations_remove",e.BOUNDING_BOX_HIGHLIGHTS_SET="bounding_box_highlights_set",e.BOUNDING_BOX_HIGHLIGHT_SELECT="bounding_box_highlight_select",e.COLOR_SET="annotations_color_set",e.VIEW_MODE_SET="view_mode_set",e.VISIBLE_SET="annotations_visible_set",e.ACTIVE_CHANGE="annotations_active_change",e.ANNOTATION_CREATE="annotations_create",e.ANNOTATION_DELETE="annotations_delete",e.ANNOTATION_FETCH_ERROR="annotations_fetch_error",e.ANNOTATION_REPLY_CREATE="annotations_reply_create",e.ANNOTATION_REPLY_DELETE="annotations_reply_delete",e.ANNOTATION_REPLY_UPDATE="annotations_reply_update",e.ANNOTATION_UPDATE="annotations_update",e.ANNOTATIONS_INITIALIZED="annotations_initialized",e.ANNOTATIONS_MODE_CHANGE="annotations_mode_change",e.CREATOR_STAGED_CHANGE="creator_staged_change",e.CREATOR_STATUS_CHANGE="creator_status_change",e.BOUNDING_BOX_HIGHLIGHT_NAVIGATE="bounding_box_highlight_navigate",e}(Lr||{}),Mr=function(e){return e.SIDEBAR_ANNOTATION_UPDATE="sidebar.annotations_update",e.SIDEBAR_REPLY_CREATE="sidebar.annotations_reply_create",e.SIDEBAR_REPLY_DELETE="sidebar.annotations_reply_delete",e.SIDEBAR_REPLY_UPDATE="sidebar.annotations_reply_update",e}(Mr||{}),Rr=function(e){return e.ANNOTATOR="annotatorevent",e.ERROR="annotationerror",e.SCALE="scaleannotations",e}(Rr||{});class jr extends Pr.EventEmitter{emit(e,...t){const[r]=t;return super.emit(e,r),super.emit(Rr.ANNOTATOR,{event:e,data:r}),!0}}const Nr=new jr,Fr=({boundingBoxHighlights:e})=>e.boundingBoxes,Br=({boundingBoxHighlights:e},t)=>e.boundingBoxes.filter(e=>e.pageNumber===t),Ur=({boundingBoxHighlights:e})=>e.selectedId;let Kr=function(e){return e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e}({});const Hr=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;Nr.emit(Lr.ANNOTATION_CREATE,{annotation:i||n,error:r,meta:{requestId:o,status:t}})})(n,e),zr=Hr(Kr.ERROR),Vr=Hr(Kr.PENDING),qr=Hr(Kr.SUCCESS),Gr=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Kr.SUCCESS&&!i)return;const a=i??n;Nr.emit(Lr.ANNOTATION_DELETE,{annotation:a?{id:a}:void 0,error:r,meta:{requestId:o,status:t}})})(n,e),Wr=Gr(Kr.ERROR),$r=Gr(Kr.PENDING),Yr=Gr(Kr.SUCCESS),Xr=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Kr.SUCCESS&&!i?.reply)return;const a=i?.annotationId??n?.annotationId;Nr.emit(Lr.ANNOTATION_REPLY_CREATE,{annotation:a?{id:a}:void 0,annotationReply:i?.reply,error:r,meta:{requestId:o,status:t}})})(n,e),Zr=Xr(Kr.ERROR),Jr=Xr(Kr.PENDING),Qr=Xr(Kr.SUCCESS),en=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Kr.SUCCESS&&!i)return;const a=i?.annotationId??n?.annotationId,s=i?.replyId??n?.replyId;Nr.emit(Lr.ANNOTATION_REPLY_DELETE,{annotation:a?{id:a}:void 0,annotationReply:s?{id:s}:void 0,error:r,meta:{requestId:o,status:t}})})(n,e),tn=en(Kr.ERROR),rn=en(Kr.PENDING),nn=en(Kr.SUCCESS),on=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Kr.SUCCESS&&!i?.reply)return;const a=i?.annotationId??n?.annotationId,s=i?.reply??(n?{id:n.replyId}:void 0);Nr.emit(Lr.ANNOTATION_REPLY_UPDATE,{annotation:a?{id:a}:void 0,annotationReply:s,error:r,meta:{requestId:o,status:t}})})(n,e),an=on(Kr.ERROR),sn=on(Kr.PENDING),cn=on(Kr.SUCCESS),un=e=>e.creator.cursor,ln=e=>e.creator.message,dn=e=>e.creator.referenceId,fn=e=>e.creator.staged,pn=(e,t)=>{const r=fn(e);return t===Ie||r&&r.location===t?r:null},hn=e=>e.creator.status,gn=e=>void 0!==e?.pathGroups,yn=e=>void 0!==e?.shapes,mn=e=>void 0!==e?.shape,vn=e=>{let t=null;return mn(e)&&(t="region"),yn(e)&&(t="highlight"),t},bn=({common:e})=>e.mode,wn=e=>e.common.color,Sn=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===Kr.SUCCESS&&!i)return;const a=i??(n?{id:n.annotationId}:void 0);Nr.emit(Lr.ANNOTATION_UPDATE,{annotation:a,error:r,meta:{requestId:o,status:t}})})(n,e),xn=Sn(Kr.ERROR),En=Sn(Kr.PENDING),_n=Sn(Kr.SUCCESS),On={[Xe.fulfilled.toString()]:qr,[Xe.pending.toString()]:Vr,[Xe.rejected.toString()]:zr,[Je.fulfilled.toString()]:Qr,[Je.pending.toString()]:Jr,[Je.rejected.toString()]:Zr,[Qe.fulfilled.toString()]:Yr,[Qe.pending.toString()]:$r,[Qe.rejected.toString()]:Wr,[rt.fulfilled.toString()]:nn,[rt.pending.toString()]:rn,[rt.rejected.toString()]:tn,[Ze.rejected.toString()]:(e,t,r)=>{Nr.emit(Lr.ANNOTATION_FETCH_ERROR,r)},[Or.toString()]:(e,t)=>{const r=Ur(t);r&&Nr.emit(Lr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,r)},[Wt.toString()]:e=>{const t=fn(e),r=vn(t);Nr.emit(Lr.CREATOR_STAGED_CHANGE,{type:r,status:"cancel"})},[ct.toString()]:(e,t)=>{const r=Le(e),n=Le(t),o=Ke(t);r!==n&&Nr.emit(Lr.ACTIVE_CHANGE,{annotationId:n,fileVersionId:o})},[ut.toString()]:(e,t)=>{const r=Ne(e),n=Ne(t);r!==n&&n&&Nr.emit(Lr.ANNOTATIONS_INITIALIZED,{annotations:Re(t)})},[Zt.toString()]:(e,t)=>{const r=fn(e),n=fn(t),o=((e,t)=>{let r=null;return null===e&&null!==t&&(r="create"),null!==e&&(r=null===t?"cancel":"update"),r})(r,n),i=vn(r)||vn(n);o&&i&&Nr.emit(Lr.CREATOR_STAGED_CHANGE,{type:i,status:o})},[Jt.toString()]:(e,t)=>{const r=hn(e),n=hn(t);r!==n&&Nr.emit(Lr.CREATOR_STATUS_CHANGE,{status:n,type:bn(t)})},[Vt.toString()]:(e,t)=>{Nr.emit(Lr.ANNOTATIONS_MODE_CHANGE,{mode:t.common.mode})},[et.fulfilled.toString()]:_n,[et.pending.toString()]:En,[et.rejected.toString()]:xn,[tt.fulfilled.toString()]:cn,[tt.pending.toString()]:sn,[tt.rejected.toString()]:an},Cn=function(e=On){return t=>r=>n=>{const{type:o}=n,i=t.getState(),a=r(n),s=t.getState();return(e[o]||Ir())(i,s,n),a}};function kn(e,{api:t}={}){return function(e){var t,r=e||{},n=r.reducer,o=void 0===n?void 0:n,i=r.middleware,a=void 0===i?_e():i,s=r.devTools,c=void 0===s||s,u=r.preloadedState,l=void 0===u?void 0:u,d=r.enhancers,f=void 0===d?void 0:d;if("function"==typeof o)t=o;else{if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=pe(o)}var p=me.apply(void 0,a),h=ye;c&&(h=Ee(xe({trace:!1},"object"==typeof c&&c)));var g=[p];return Array.isArray(f)?g=[p].concat(f):"function"==typeof f&&(g=f(g)),de(t,l,h.apply(void 0,g))}({devTools:!1,middleware:[..._e({thunk:{extraArgument:{api:t}}}),Cn()],preloadedState:e,reducer:pe({annotations:Bt,common:qt,creator:er,drawing:sr,highlight:xr,boundingBoxHighlights:Cr,options:kr,users:Tr})})}var An=l(5364),Tn=l.n(An);let Dn;class In{static getUserAgent(){return globalThis.navigator.userAgent}static isMobile(){const e=In.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}static isIE(){return/Trident/i.test(In.getUserAgent())}static isFirefox(){const e=In.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}static isSafari(){const e=In.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}static isMobileSafari(){return In.isMobile()&&In.isSafari()&&!In.isMobileChromeOniOS()}static isMobileChromeOniOS(){const e=In.getUserAgent();return In.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}static canDownload(){return!In.isMobile()||!window.externalHost&&"download"in document.createElement("a")}static canPlayDash(){if(void 0===Dn||arguments.length>0&&void 0!==arguments[0]&&arguments[0]){const e=globalThis.MediaSource;Dn=!!e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return Dn}static canWriteToClipboard(){return!(!globalThis.navigator.clipboard||!globalThis.navigator.clipboard.writeText)}static canReadFromClipboard(){return!(!globalThis.navigator.clipboard||!globalThis.navigator.clipboard.readText)}}const Pn=In,Ln="folder_",Mn="file_",Rn="Content-Type",jn="Accept-Language",Nn="global",Fn="permissions",Bn=("".concat(Fn,".can_share"),"".concat(Fn,".can_upload"),"metadata"),Un=("".concat(Bn,".").concat(Nn,".").concat("boxSkillsCards"),"".concat(Bn,".").concat(Nn,".").concat("properties"),"".concat(Bn,".").concat("enterprise",".").concat("securityClassification-6VMVochwUWo"),"can_comment"),Kn="can_create_annotations",Hn="can_delete",zn="can_edit",Vn="can_resolve",qn="can_view_annotations",Gn="https://api.box.com",Wn="https://upload.box.com",$n="fetch_replies_error",Yn="create_reply_error",Xn=Pn.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]",Zn=("".concat("[3d][pdf][text][mp3][json]").concat("[jpg?dimensions=1024x1024&paged=false]").concat("[jpg?dimensions=2048x2048,png?dimensions=2048x2048]").concat(Xn),"[jpg?dimensions=".concat("1024x1024","&paged=false,png?dimensions=").concat("1024x1024","][pdf][text]"),"GET"),Jn="POST",Qn="DELETE",eo="OPTIONS",to=429;function ro(e){return"".concat(Mn).concat(e)}var no=l(2505),oo=l.n(no),io=l(9859),ao=l.n(io),so=l(5321),co=l.n(so);const uo=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function.");class lo{static async getToken(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.startsWith(Ln)&&!e.startsWith(Mn))throw uo;if(!t||"string"==typeof t)return t;const r=await t(e);if(!r||"string"==typeof r||"object"==typeof r&&(r.read||r.write))return r;throw uo}static async getReadToken(e,t){const r=await lo.getToken(e,t);return r&&"object"==typeof r?r.read:r}static async getReadTokens(e,t){const r=Array.isArray(e)?e:[e],n=r.map(e=>lo.getReadToken(e,t)),o=await Promise.all(n),i={};return o.forEach((e,t)=>{i[r[t]]=e}),Promise.resolve(i)}static async getWriteToken(e,t){const r=await lo.getToken(e,t);return r&&"object"==typeof r?r.write||r.read:r}static async cacheTokens(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.every(e=>e.startsWith(Ln)||e.startsWith(Mn)))throw uo;return"function"==typeof t&&await t(e),Promise.resolve()}}const fo=lo;function po(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const go=12e4,yo=[Zn,eo,"HEAD"].map(co()),mo=class{constructor(){let{id:e,clientName:t,language:r,token:n,version:o,sharedLink:i,sharedLinkPassword:a,responseInterceptor:s,requestInterceptor:c,retryableStatusCodes:u=[to],shouldRetry:l=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ho(this,"retryCount",0),ho(this,"errorInterceptor",e=>{if(this.shouldRetryRequest(e)){this.retryCount+=1;const t=this.getExponentialRetryTimeoutInMs(this.retryCount);return new Promise((r,n)=>{this.retryTimeout=setTimeout(()=>{this.axios(e.config).then(r,n)},t)})}const t=h()(e,"response.data")||e;return this.responseInterceptor(t),Promise.reject(e)}),this.clientName=t,this.id=e,this.language=r,this.responseInterceptor=s||this.defaultResponseInterceptor,this.retryableStatusCodes=u,this.sharedLink=i,this.sharedLinkPassword=a,this.shouldRetry=l,this.token=n,this.version=o,this.axios=oo().create(),this.axiosSource=oo().CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof c&&this.axios.interceptors.request.use(c)}defaultResponseInterceptor(e){return e}shouldRetryRequest(e){if(!this.shouldRetry||this.retryCount>=3)return!1;const{response:t,request:r,config:n}=e,o=h()(t,"status"),i=h()(n,"method"),a=r&&!t,s=o===to,c=ao()(this.retryableStatusCodes,o)&&ao()(yo,i);return a||s||c}getExponentialRetryTimeoutInMs(e){return 2**(e-1)*1e3+Math.ceil(1e3*Math.random())}getParsedUrl(e){const t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}async getHeaders(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?po(Object(r),!0).forEach(function(t){ho(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):po(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({Accept:"application/json",[Rn]:"application/json"},t);this.language&&!r[jn]&&(r[jn]=this.language),this.sharedLink&&(r.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(r.BoxApi="".concat(r.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(r["X-Box-Client-Name"]=this.clientName),this.version&&(r["X-Box-Client-Version"]=this.version);const n=e||this.id||"",o=await fo.getWriteToken(n,this.token);return o&&(r.Authorization="Bearer ".concat(o)),r}get(e){let{url:t,id:r,params:n={},headers:o={}}=e;return this.getHeaders(r,o).then(e=>this.axios.get(t,{cancelToken:this.axiosSource.token,params:n,headers:e,parsedUrl:this.getParsedUrl(t)}))}post(e){let{url:t,id:r,data:n,params:o,headers:i={},method:a=Jn}=e;return this.getHeaders(r,i).then(e=>this.axios({url:t,data:n,params:o,method:a,parsedUrl:this.getParsedUrl(t),headers:e}))}put(e){let{url:t,id:r,data:n,params:o,headers:i={}}=e;return this.post({id:r,url:t,data:n,params:o,headers:i,method:"PUT"})}delete(e){let{url:t,id:r,data:n={},headers:o={}}=e;return this.post({id:r,url:t,data:n,headers:o,method:Qn})}options(e){let{id:t,url:r,data:n,headers:o={},successHandler:i,errorHandler:a}=e;return this.getHeaders(t,o).then(e=>this.axios({url:r,data:n,method:eo,headers:e}).then(i).catch(a)).catch(a)}uploadFile(e){let{id:t,url:r,data:n,headers:o={},method:i=Jn,successHandler:a,errorHandler:s,progressHandler:c,withIdleTimeout:u=!1,idleTimeoutDuration:l=go,idleTimeoutHandler:d}=e;return this.getHeaders(t,o).then(e=>{let t,f=c;if(u){const e=()=>{this.abort(),d&&d()};t=setTimeout(e,l),f=r=>{clearTimeout(t),t=setTimeout(e,l),c(r)}}this.axios({url:r,data:n,transformRequest:(e,t)=>{if(delete t.Accept,delete t[Rn],o[Rn]&&(t[Rn]=o[Rn]),e&&!(e instanceof Blob)&&e.attributes){const t=new FormData;return Object.keys(e).forEach(r=>{t.append(r,e[r])}),t}return e},method:i,headers:e,onUploadProgress:f,cancelToken:this.axiosSource.token}).then(e=>{clearTimeout(t),a(e)}).catch(e=>{clearTimeout(t),s(e)})}).catch(s)}abort(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=oo().CancelToken.source())}},vo=class{constructor(){this.cache={}}set(e,t){this.cache[e]=t}merge(e,t){if(!this.has(e))throw new Error("Key ".concat(e," not in cache!"));this.set(e,Tn()({},this.get(e),t))}unset(e){delete this.cache[e]}unsetAll(e){Object.keys(this.cache).forEach(t=>{t.startsWith(e)&&delete this.cache[t]})}has(e){return{}.hasOwnProperty.call(this.cache,e)}get(e){if(this.has(e))return this.cache[e]}},bo=class{constructor(){this.memoryStore=new vo;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}buildKey(e){return"".concat("localStore","/").concat("0","/").concat(e)}canUseLocalStorage(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}setItem(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}getItem(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{const t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}removeItem(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}},wo="bcu-uploads-reachability-cached-results",So=class{constructor(){this.localStore=new bo,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}getCachedResultsFromLocalStore(){return this.localStore.getItem(wo)}saveCachedResultsToLocalStore(){this.localStore.setItem(wo,this.cachedResults)}isCachedHostValid(e){return e.expirationTimestampMS>Date.now()}getCachedResult(e){if(e in this.cachedResults){const t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}updateCachedResult(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}populateCachedResultsWithValidLocalStoreValues(){const e=this.getCachedResultsFromLocalStore();e&&Object.keys(e).forEach(t=>{const r=e[t];this.isCachedHostValid(r)&&(this.cachedResults[t]=r)})}getUnreachableHostsUrls(){const e=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach(t=>{const r=this.cachedResults[t];this.isCachedHostValid(r)&&!r.isReachable&&e.push(t)}),e):e}async isReachable(e){if(e==="".concat(Wn,"/")||e==="".concat("https://upload.app.box.com","/"))return!0;const t=this.getCachedResult(e);if(t)return t.isReachable;const r=await this.makeReachabilityRequest(e);return this.updateCachedResult(e,r),r}async makeReachabilityRequest(e){const t="".concat(e,"html5?reachability_test=run"),r={[Rn]:"application/x-www-form-urlencoded; charset=UTF-8","X-File-Name":"reachability_pseudofile.txt","X-File-Size":"1234"};try{await oo().post(t,"reachability_file=test_file_data",{headers:r})}catch(e){return!1}return!0}};function xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(r),!0).forEach(function(t){_o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oo=class{constructor(e){_o(this,"successHandler",e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}),_o(this,"errorHandler",e=>{if(!this.isDestroyed()&&"function"==typeof this.errorCallback){const{response:t}=e;t&&t.data?this.errorCallback(t.data,this.errorCode):this.errorCallback(e,this.errorCode)}}),this.cache=e.cache||new vo,this.apiHost=e.apiHost||Gn,this.uploadHost=e.uploadHost||Wn,this.options=Eo({},e,{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new mo(this.options),this.destroyed=!1,this.consoleLog=e.consoleLog&&window.console&&window.console.log||Ir(),this.consoleError=e.consoleError&&window.console&&window.console.error||Ir(),this.uploadsReachability=new So}destroy(){this.xhr.abort(),this.destroyed=!0}isDestroyed(){return this.destroyed}checkApiCallValidity(e,t,r){if(!r||!t)throw new Error("Bad box item!");if(!t[e])throw new Error("Insufficient Permissions!")}getBaseApiUrl(){const e=this.apiHost.endsWith("/")?"2.0":"/2.0";return"".concat(this.apiHost).concat(e)}getBaseUploadUrl(){const e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return"".concat(this.uploadHost).concat(e)}getCache(){return this.cache}getUrl(e){throw new Error("Implement me!")}format(e){throw new Error("Implement me!")}get(e){let{id:t,successCallback:r,errorCallback:n,requestData:o,url:i}=e;const a=i||this.getUrl(t);return this.makeRequest(Zn,t,a,r,n,o)}post(e){let{id:t,url:r,data:n,successCallback:o,errorCallback:i}=e;return this.makeRequest(Jn,t,r,o,i,n)}put(e){let{id:t,url:r,data:n,successCallback:o,errorCallback:i}=e;return this.makeRequest("PUT",t,r,o,i,n)}delete(e){let{id:t,url:r,data:n,successCallback:o,errorCallback:i}=e;return this.makeRequest(Qn,t,r,o,i,n)}async makeRequest(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.isDestroyed())return;this.successCallback=n,this.errorCallback=o;const a=this.xhr[e.toLowerCase()].bind(this.xhr);try{const{data:e}=await a(Eo({id:ro(t),url:r},i));this.successHandler(e)}catch(e){this.errorHandler(e)}}};function Co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ko(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(r),!0).forEach(function(t){Ao(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Co(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ao(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const To=class extends Oo{hasMoreItems(e){return null!==e&&""!==e}async markerGetRequest(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDestroyed())try{const i=this.getUrl(e),a=ko({},o,{marker:t,limit:r}),{data:s}=await this.xhr.get({url:i,id:ro(e),params:a}),c=this.data?this.data.entries:[];this.data=ko({},s,{entries:c.concat(s.entries)});const u=s.next_marker;if(n&&this.hasMoreItems(u))return void this.markerGetRequest(e,u,r,n,o);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async markerGet(e){let{id:t,successCallback:r,errorCallback:n,marker:o="",limit:i=1e3,requestData:a,shouldFetchAll:s=!0}=e;return this.successCallback=r,this.errorCallback=n,this.markerGetRequest(t,o,i,s,a)}};function Do(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Po=e=>{const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(r),!0).forEach(function(t){Io(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Do(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e,{tagged_message:e.message});return e.replies&&e.replies.length&&(t.replies=e.replies.map(Po)),t};function Lo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(r),!0).forEach(function(t){Ro(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ro(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class jo extends To{constructor(){super(...arguments),Ro(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return e.type&&"comment"===e.type?void this.successCallback(Po(e)):void this.successCallback(this.formatReplies(e));if(e.entries.length&&"comment"===e.entries[0].type){const t=e.entries.map(Po);return void this.successCallback(Mo({},e,{entries:t}))}const t=e.entries.map(this.formatReplies);this.successCallback(Mo({},e,{entries:t}))})}formatReplies(e){return e.replies&&e.replies.length?Mo({},e,{replies:e.replies.map(Po)}):e}getUrl(){return"".concat(this.getBaseApiUrl(),"/undoc/annotations")}getUrlForId(e){return"".concat(this.getUrl(),"/").concat(e)}getUrlWithRepliesForId(e){return"".concat(this.getUrlForId(e),"/replies")}createAnnotation(e,t,r,n,o,i){this.errorCode="create_annotation_error";try{this.checkApiCallValidity(Kn,n,e)}catch(e){return void i(e,this.errorCode)}const a={description:{type:"reply"},file_version:{id:t,type:"file_version"}};this.post({id:e,data:{data:Tn()(a,r)},errorCallback:i,successCallback:o,url:this.getUrl()})}updateAnnotation(e,t,r,n,o,i){this.errorCode="edit_annotation_error";const{message:a,status:s}=n;if(a)try{this.checkApiCallValidity(zn,r,e)}catch(e){return void i(e,this.errorCode)}if(s)try{this.checkApiCallValidity(Vn,r,e)}catch(e){return void i(e,this.errorCode)}this.put({id:e,data:{data:{description:a?{message:a}:void 0,status:s}},errorCallback:i,successCallback:o,url:this.getUrlForId(t)})}deleteAnnotation(e,t,r,n,o){this.errorCode="delete_annotation_error";try{this.checkApiCallValidity(Hn,r,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t)})}getAnnotation(e,t,r,n,o,i){this.errorCode="fetch_annotation_error";try{this.checkApiCallValidity(qn,r,e)}catch(e){return void o(e,this.errorCode)}const a=i?{params:{fields:"replies"}}:void 0;this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t),requestData:a})}getAnnotations(e,t,r,n,o,i,a,s){this.errorCode="fetch_annotations_error";try{this.checkApiCallValidity(qn,r,e)}catch(e){return void o(e,this.errorCode)}const c=Mo({file_id:e,file_version_id:t},s?{fields:"replies"}:null);this.markerGet({id:e,errorCallback:o,limit:i,requestData:c,shouldFetchAll:a,successCallback:n})}getAnnotationReplies(e,t,r,n,o){this.errorCode=$n;try{this.checkApiCallValidity(qn,r,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlWithRepliesForId(t)})}createAnnotationReply(e,t,r,n,o,i){this.errorCode=Yn;try{this.checkApiCallValidity(Kn,r,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:n}},errorCallback:i,successCallback:o,url:"".concat(this.getUrlWithRepliesForId(t),"?file_id=").concat(e)})}}function No(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Fo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bo=class extends To{constructor(){var e;super(...arguments),e=this,Fo(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.entries.map(e=>{let t;return"group"===e.type?t=e:(t=e,t.email=t.login),{id:e.id,name:e.name,item:t}});this.successCallback(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?No(Object(r),!0).forEach(function(t){Fo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e,{entries:t}))}),Fo(this,"getCollaboratorsWithQuery",function(t,r,n,o){let{includeGroups:i=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};o&&""!==o.trim()&&e.getFileCollaborators(t,r,n,{filter_term:o,include_groups:i,include_uploader_collabs:!1})})}getUrl(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborators")}getFileCollaborators(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:25;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:n})}};function Uo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ko(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(r),!0).forEach(function(t){Ho(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zo=class extends To{constructor(){super(...arguments),Ho(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(Po(e));const t=e.entries.map(Po);this.successCallback(Ko({},e,{entries:t}))})}getUrl(e){return"".concat(this.getBaseApiUrl(),"/undoc/comments").concat(e?"?file_id=".concat(e):"")}getUrlForId(e){return"".concat(this.getUrl(),"/").concat(e)}getUrlWithRepliesForId(e,t){return"".concat(this.getUrlForId(e),"/replies").concat(t?"?file_id=".concat(t):"")}createComment(e){let{file:t,message:r,successCallback:n,errorCallback:o}=e;this.errorCode="create_comment_error";const{id:i,permissions:a}=t;try{this.checkApiCallValidity(Un,a,i)}catch(e){return void o(e,this.errorCode)}this.post({id:i,url:this.getUrl(i),data:{data:{message:r}},successCallback:n,errorCallback:o})}updateComment(e){let{fileId:t,commentId:r,status:n,message:o,permissions:i,successCallback:a,errorCallback:s}=e;if(this.errorCode="update_comment_error",o)try{this.checkApiCallValidity(zn,i,t)}catch(e){return void s(e,this.errorCode)}if(n)try{this.checkApiCallValidity(Vn,i,t)}catch(e){return void s(e,this.errorCode)}const c={data:{status:n,message:o}};this.put({id:t,url:this.getUrlForId(r),data:c,successCallback:a,errorCallback:s})}deleteComment(e){let{fileId:t,commentId:r,permissions:n,successCallback:o,errorCallback:i}=e;this.errorCode="delete_comment_error";try{this.checkApiCallValidity(Hn,n,t)}catch(e){return void i(e,this.errorCode)}this.delete({id:t,url:this.getUrlForId(r),successCallback:o,errorCallback:i})}getComment(e){let{commentId:t,errorCallback:r,fileId:n,permissions:o,successCallback:i}=e;this.errorCode="fetch_comment_error";try{this.checkApiCallValidity(Un,o,n)}catch(e){return void r(e,this.errorCode)}this.get({id:n,errorCallback:r,successCallback:i,url:this.getUrlForId(t)})}getComments(e){let{fileId:t,permissions:r,successCallback:n,errorCallback:o,marker:i,limit:a,shouldFetchAll:s,repliesCount:c}=e;this.errorCode="fetch_comments_error";try{this.checkApiCallValidity(Un,r,t)}catch(e){return void o(e,this.errorCode)}this.markerGet({id:t,successCallback:n,errorCallback:o,marker:i,limit:a,requestData:Ko({},c?{replies_count:c}:null),shouldFetchAll:s})}getCommentReplies(e){let{fileId:t,commentId:r,permissions:n,successCallback:o,errorCallback:i}=e;this.errorCode=$n;try{this.checkApiCallValidity(Un,n,t)}catch(e){return void i(e,this.errorCode)}this.get({id:t,errorCallback:i,successCallback:o,url:this.getUrlWithRepliesForId(r)})}createCommentReply(e){let{fileId:t,commentId:r,permissions:n,successCallback:o,errorCallback:i,message:a}=e;this.errorCode=Yn;try{this.checkApiCallValidity(Un,n,t)}catch(e){return void i(e,this.errorCode)}this.post({id:t,data:{data:{message:a}},errorCallback:i,successCallback:o,url:this.getUrlWithRepliesForId(r,t)})}};function Vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}class qo{constructor(e){f(this,"options",void 0),this.options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({apiHost:Gn,clientName:"box-annotations"},e)}getAnnotationsAPI(){return new jo(this.options)}getCollaboratorsAPI(){return new Bo(this.options)}getThreadedCommentsAPI(){return new zo(this.options)}}var Go=l(2015),Wo=l.n(Go);const $o=require("react-dom/client"),Yo=require("react-redux");function Xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Zo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class Jo{constructor({location:e=1,referenceEl:t,resinTags:r={},targetType:n=Pe.PAGE}){f(this,"location",void 0),f(this,"reactEl",void 0),f(this,"root",null),f(this,"targetType",void 0),f(this,"referenceEl",void 0),this.location=e,this.reactEl=this.insert(t,Zo(Zo({},r),{},{feature:"annotations"})),this.referenceEl=t,this.targetType=n,this.root=$o.createRoot(this.reactEl),this.decorate()}decorate(){throw new Error("Method not implemented.")}destroy(){this.root&&this.root.unmount(),this.reactEl.parentNode&&this.reactEl.parentNode.removeChild(this.reactEl)}exists(e){return e.contains(this.reactEl)}insert(e,t={}){const r=e.ownerDocument||document,n=e.parentNode||r,o=r.createElement("div");return o.classList.add("ba-Layer"),a=t,(i=o)&&Object.values(a).length&&Object.entries(a).forEach(([e,t])=>{const r=`data-resin-${e.toLowerCase()}`,n=function(e){return"object"==typeof e||"function"==typeof e||"symbol"==typeof e?"":"string"==typeof e?e:String(e)}(t);n&&i.setAttribute(r,n)}),n.insertBefore(o,e.nextSibling);var i,a}render(e){throw new Error("Method not implemented.")}style(e){return y(this.reactEl.style,e)}}function Qo(){const e=(0,Yo.useDispatch)();return Wo().useEffect(()=>{const t=t=>{t.target?.closest?.(".ba-PopupAnnotation, .ba-Popup")||e(ct(null))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),null}class ei extends Jo{decorate(){this.reactEl.classList.add("ba-Layer--deselect"),this.reactEl.dataset.testid="ba-Layer--deselect"}render({store:e}){this.root||(this.root=$o.createRoot(this.reactEl)),this.root.render(Go.createElement(Yo.Provider,{store:e},Go.createElement(Qo,null)))}}class ti{addListener(e,t){Nr.addListener(e,t)}emit(e,...t){Nr.emit(e,...t)}removeAllListeners(){Nr.removeAllListeners()}removeListener(e,t){Nr.removeListener(e,t)}}const ri=require("react-intl");function ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function oi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const ii=(e="en-US")=>e.substr(0,e.indexOf("-"));window.Intl.PluralRules||(l(1624),l(8139)),window.Intl.RelativeTimeFormat||(l(1113),l(2844));const ai=oi(oi({},{"ba.annotationsClose":"Close","ba.annotationsCreateError":"We’re sorry, the annotation could not be created.","ba.annotationsLoadError":"We’re sorry, the annotations failed to load for this file.","ba.annotationsPost":"Post","ba.annotationsSave":"Save","ba.boundingBoxHighlight.viewNextReference":"View next reference","ba.boundingBoxHighlight.viewPrevReference":"View previous reference","ba.popup.reply.comment":"Comment","ba.popup.reply.field":"Type a comment","ba.popup.reply.mentionLoading":"Loading users...","ba.popup.reply.mentionSelector":"Mention a collaborator","ba.popups.cancel":"Cancel","ba.popups.drawing.addComment":"Add Comment","ba.popups.drawing.delete":"Delete","ba.popups.drawing.redo":"Redo","ba.popups.drawing.undo":"Undo","ba.popups.popupCursor.regionPrompt":"Draw a box to comment","ba.popups.popupHighlight.promoter":"Highlight and Comment","ba.popups.popupHighlight.restrictedPrompt":"Comments restricted to single page","ba.popups.popupList.prompt":"Mention someone to notify them","ba.popups.post":"Post","ba.popups.replyField.placeholder":"Type a comment..."}),{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.hideReplies":"Hide replies","be.activitySidebar.activityFeed.reply":"Reply","be.activitySidebar.activityFeed.replyInThread":"Reply in thread","be.activitySidebar.activityFeed.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.activitySidebarFilter.status.allActivity":"All Activity","be.activitySidebarFilter.status.allComments":"All Comments","be.activitySidebarFilter.status.open":"Unresolved Comments","be.activitySidebarFilter.status.resolved":"Resolved Comments","be.activitySidebarFilter.status.tasks":"Tasks","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.annotationThread.errorDeleteAnnotation":"There was an error deleting this item.","be.annotationThread.errorEditAnnotation":"This annotation could not be modified.","be.annotattionThread.errorFetchAnnotation":"The annotation could not be fetched.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.repliesFetchErrorMessage":"The replies to this comment could not be loaded.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.bookmark":"Bookmark","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collaboratedFolder":"Collaborated Folder","be.collapse":"Collapse","be.contentInsights.contentAnalyticsErrorText":"There was a problem loading content insights. Please try again.","be.contentInsights.contentAnalyticsPermissionError":"Oops! You no longer have access to view content insights.","be.contentInsights.contentInsightsTitle":"Content Insights","be.contentInsights.downloadGraphLabel":"Chart displaying the number of downloads over the selected time period","be.contentInsights.downloadGraphType":"DOWNLOADS","be.contentInsights.openContentInsightsButton":"See Details","be.contentInsights.peopleGraphLabel":"Chart displaying the number of users over the selected time period","be.contentInsights.peopleTitle":"PEOPLE","be.contentInsights.previewGraphLabel":"Chart displaying the number of previews over the selected time period","be.contentInsights.previewGraphType":"PREVIEWS","be.contentInsights.trendDown":"Trending down","be.contentInsights.trendMonth":"PAST MONTH","be.contentInsights.trendThreeMonths":"PAST 3 MONTHS","be.contentInsights.trendUp":"Trending up","be.contentInsights.trendWeek":"PAST WEEK","be.contentInsights.trendYear":"PAST YEAR","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivity.annotationActivityResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.annotationActivity.annotationActivityUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.comment.commentResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.comment.commentUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.comment.hideReplies":"Hide replies","be.contentSidebar.activityFeed.comment.inlineCommentAnnotationIconTitle":"Inline Comment","be.contentSidebar.activityFeed.comment.reply":"Reply","be.contentSidebar.activityFeed.comment.replyInThread":"Reply in thread","be.contentSidebar.activityFeed.comment.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.activityStatusResolved":"RESOLVED","be.contentSidebar.activityFeed.common.editedMessage":" (edited)","be.contentSidebar.activityFeed.common.seeLessMessage":"See less","be.contentSidebar.activityFeed.common.seeMoreMessage":"See more","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.approvalTaskAnnotationIconTitle":"Approval Task","be.contentSidebar.activityFeed.task.generalTaskAnnotationIconTitle":"General Task","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignRequestSignature":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignMyself":"Sign Myself","be.contentSidebar.boxSignSignature":"Sign","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.docGenSidebar.docGenTags":"Doc Gen Tags","be.docGenSidebar.emptyTags":"This document has no tags","be.docGenSidebar.errorTags":"We couldn't load the tags","be.docGenSidebar.imageTags":"Image tags","be.docGenSidebar.refreshButton":"Refresh","be.docGenSidebar.refreshPrompt":"Please refresh the list.","be.docGenSidebar.textTags":"Text tags","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.externalFolder":"External Folder","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.file":"File","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.columnSize":"Column size","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.moreOptions":"More options","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.personalFolder":"Personal Folder","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"We’re sorry, the preview didn’t load. Please refresh the page.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarContentInsights":"Content Insights","be.sidebarDetailsTitle":"Details","be.sidebarDocGenTitle":"Doc Gen Tags","be.sidebarDocGenTooltip":"Box Doc Gen","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.advancedContentInsights.advancedContentInsightsDescription":"Get actionable insights into how viewers are engaging with this content. Measure average time spent, page-by-page engagement, per person and per visit details.","boxui.advancedContentInsights.advancedContentInsightsTitleDisabled":"Activate Engagement Insights","boxui.advancedContentInsights.advancedContentInsightsTitleEnabled":"Engagement Insights is activated","boxui.avatar.externalUser":"External user","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentAnswers.ask":"Ask","boxui.contentAnswers.askDisabledTooltip":"You can submit another question once Box AI has finished responding","boxui.contentAnswers.askQuestionPlaceholder":"Ask anything about this document","boxui.contentAnswers.contentAnswersTitle":"Box AI","boxui.contentAnswers.defaultTooltip":"Get instant answers about this document using Box AI","boxui.contentAnswers.disabledTooltipFileNotCompatible":"Box AI is not currently supported for this file type","boxui.contentAnswers.hasQuestionsTooltip":"Return to Box AI","boxui.contentAnswers.inlineErrorText":"The Box AI service was unavailable.","boxui.contentAnswers.intelligenceUnavailableDescription":"The Box AI service is not responding.","boxui.contentAnswers.intelligenceUnavailableHeading":"Box AI is unavailable","boxui.contentAnswers.intelligenceUnavailableTryAgain":"Please try again later.","boxui.contentAnswers.maxCharactersReachedError":"Maximum of {characterLimit} characters reached","boxui.contentAnswers.retryResponse":"Retry","boxui.contentAnswers.welcomeAskQuestionText":"Ask questions about {name}","boxui.contentAnswers.welcomeClearChatText":"This chat will be cleared when you close this document","boxui.contentAnswers.welcomeMessageTitle":"Welcome to Box AI","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.clickToViewPath":"Click to view path","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.filepath":"File path","boxui.contentExplorer.folderTreeBreadcrumbsText":"{folderName} ({totalItems})","boxui.contentExplorer.includeSubfolders":"Include Subfolders","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numFoldersSelected":"{numSelected, plural, =0 {0 folders selected} one {1 folder selected} other {# folders selected} } ","boxui.contentExplorer.numItemsSelected":"{numSelected, plural, =0 {0 items selected} one {1 item selected} other {# items selected} } ","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.backModalText":"Back","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.accessibilityInstructions":"For security purposes, please drag the cloud object onto the target. You are on a {row} by {column} grid with a movable cloud object and a target area. Press spacebar to grab the cloud object, arrow keys to move, and spacebar to drop on the target.","boxui.securityCloudGame.cloudDropped":"Cloud object dropped.","boxui.securityCloudGame.cloudGrabbed":"Cloud object grabbed.","boxui.securityCloudGame.cloudObject":"Cloud object","boxui.securityCloudGame.currentPosition":"Current position: Row {row}, Column {column}.","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud onto the dark cloud. Keyboard users: Press spacebar to grab the cloud, arrow keys to move, and spacebar to drop.","boxui.securityCloudGame.reachBottomEdge":"Reached bottom edge of grid.","boxui.securityCloudGame.reachLeftEdge":"Reached left edge of grid.","boxui.securityCloudGame.reachRightEdge":"Reached right edge of grid.","boxui.securityCloudGame.reachTopEdge":"Reached top edge of grid.","boxui.securityCloudGame.success":"Success!","boxui.securityCloudGame.target":"Target","boxui.securityCloudGame.targetInRange":"Target in range, you can drop the cloud object.","boxui.securityCloudGame.targetPosition":"Target position: Row {row}, Column {column}.","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.boxSignRequestRestricted":"Sign restrictions apply.","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for “{itemName}”","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortAppSign":"App and Sign restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortDownloadAppSign":"Download, app and Sign restrictions apply","boxui.securityControls.shortDownloadSign":"Download and Sign restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingAppSign":"Sharing, app and Sign restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortSharingDownloadApp":"Sharing, download and app restrictions apply","boxui.securityControls.shortSharingDownloadAppSign":"Sharing, download, app and Sign restrictions apply","boxui.securityControls.shortSharingDownloadSign":"Sharing, download and Sign restrictions apply","boxui.securityControls.shortSharingSign":"Sharing and Sign restrictions apply","boxui.securityControls.shortSign":"Sign restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.watermarkingApplied":"Watermarking will be applied.","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collabAccess":"collaborator access","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrier":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingular":"Invitations cannot be sent to {email} due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingularGroup":'Invitations cannot be sent to "{groupName}" due to a security policy.',"boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove to continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.expiresMessage":"Expires","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove to continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.levelOfCollabAccess":"Set the level of {collaboratorAccess} and increase security through one of our paid plans. {upgradeLink}","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInCompanyCanAccessHub":"Anyone in your company with the link or people invited to this hub can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInItemCanAccessHub":"Only invited people can access this hub","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessHub":"Anyone at {company} with the link or people invited to this hub can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithLinkSignedInRequiredDescription":"Publicly accessible, sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"}),si=(0,ri.createIntlCache)(),ci=(0,ri.defineMessages)({annotationsClose:{id:"ba.annotationsClose",defaultMessage:"Close"},annotationsSave:{id:"ba.annotationsSave",defaultMessage:"Save"},annotationsPost:{id:"ba.annotationsPost",defaultMessage:"Post"},annotationsCreateError:{id:"ba.annotationsCreateError",defaultMessage:"We’re sorry, the annotation could not be created."},annotationsLoadError:{id:"ba.annotationsLoadError",defaultMessage:"We’re sorry, the annotations failed to load for this file."}}),ui={x:0,y:0};function li(e,t,r={}){const{offsets:n=ui,smooth:o=!1}=r,{x:i,y:a}=n,{left:s,top:c}=e.getBoundingClientRect(),{height:u,left:l,top:d,width:f}=t.getBoundingClientRect(),p=Math.round(e.clientWidth/2),h=Math.round(e.clientHeight/2),g=l-s-p+Math.round(f*(i/100)),y=d-c-h+Math.round(u*(a/100)),m=Math.max(0,Math.min(e.scrollLeft+g,e.scrollWidth)),v=Math.max(0,Math.min(e.scrollTop+y,e.scrollHeight));o?e.scrollTo({left:m,top:v,behavior:"smooth"}):(e.scrollLeft=m,e.scrollTop=v)}const di="ba-annotations-loaded",fi={[g.HIGHLIGHT]:"ba-is-create--highlight",[g.REGION]:"ba-is-create--region"};class pi extends ti{constructor({apiHost:e,container:t,features:r={},file:n,fileOptions:o,initialColor:i,initialMode:a,initialViewMode:s="annotations",intl:c,onCopyLink:u,token:l}){super(),f(this,"annotatedEl",void 0),f(this,"containerEl",void 0),f(this,"popupPortalEl",void 0),f(this,"container",void 0),f(this,"deselectManager",null),f(this,"features",void 0),f(this,"intl",void 0),f(this,"onCopyLink",void 0),f(this,"store",void 0),f(this,"removeAnnotation",e=>{this.store.dispatch(st(e))}),f(this,"handleRemove",e=>{this.removeAnnotation(e)}),f(this,"handleScale",({rotationAngle:e,scale:t})=>{this.init(t,e)}),f(this,"handleSetActive",e=>{this.setActiveId(e)}),f(this,"handleSetVisible",e=>{this.setVisibility(e)}),f(this,"handleSetColor",e=>{this.setColor(e)}),f(this,"handleSetBoundingBoxHighlights",e=>{this.setBoundingBoxHighlights(e)}),f(this,"handleNavigateBoundingBoxHighlight",e=>{this.scrollToBoundingBoxHighlight(e)}),f(this,"handleSelectBoundingBoxHighlight",e=>{this.selectBoundingBoxHighlight(e)}),f(this,"handleSetViewMode",({viewMode:e})=>{this.setViewMode(e)}),f(this,"handleSidebarAnnotationUpdate",e=>{this.store.dispatch(nt(e))}),f(this,"handleSidebarReplyCreate",e=>{this.store.dispatch(ot(e))}),f(this,"handleSidebarReplyUpdate",e=>{this.store.dispatch(at(e))}),f(this,"handleSidebarReplyDelete",({annotationId:e,id:t})=>{this.store.dispatch(it({annotationId:e,replyId:t}))}),f(this,"removeAnnotationClasses",()=>{if(!this.annotatedEl)return;const e=this.annotatedEl;Object.values(fi).forEach(t=>{t&&e.classList.remove(t)})});const d=o?.[n.id],p=d?.currentFileVersionId,h=d?.fileVersionId,g=n.file_version.id,y={annotations:{activeId:d?.annotations?.activeId??null},common:{color:i,mode:a},options:{apiHost:e,features:r,fileId:n.id,fileVersionId:h??g,isCurrentFileVersion:!h||h===p,permissions:n.permissions,token:l,viewMode:s}};this.container=t,this.features=r,this.intl=(({language:e,locale:t,messages:r=ai}={})=>(0,ri.createIntl)({messages:r,locale:t||ii(e)},si))(c),this.onCopyLink=u,this.store=kn(y,{api:new qo({apiHost:e,token:l})}),this.addListener(Rr.SCALE,this.handleScale),this.addListener(Lr.ACTIVE_SET,this.handleSetActive),this.addListener(Lr.ANNOTATION_REMOVE,this.handleRemove),this.addListener(Lr.COLOR_SET,this.handleSetColor),this.addListener(Lr.VISIBLE_SET,this.handleSetVisible),this.addListener(Lr.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.addListener(Lr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.addListener(Lr.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.addListener(Lr.VIEW_MODE_SET,this.handleSetViewMode),this.addListener(Mr.SIDEBAR_ANNOTATION_UPDATE,this.handleSidebarAnnotationUpdate),this.addListener(Mr.SIDEBAR_REPLY_CREATE,this.handleSidebarReplyCreate),this.addListener(Mr.SIDEBAR_REPLY_UPDATE,this.handleSidebarReplyUpdate),this.addListener(Mr.SIDEBAR_REPLY_DELETE,this.handleSidebarReplyDelete),this.hydrate()}destroy(){this.containerEl&&this.containerEl.classList.remove("ba"),this.popupPortalEl&&(this.popupPortalEl.remove(),this.popupPortalEl=null),this.annotatedEl&&this.annotatedEl.classList.remove(di),this.deselectManager&&this.deselectManager.destroy(),this.removeAnnotationClasses(),this.removeListener(Rr.SCALE,this.handleScale),this.removeListener(Lr.ACTIVE_SET,this.handleSetActive),this.removeListener(Lr.ANNOTATION_REMOVE,this.handleRemove),this.removeListener(Lr.COLOR_SET,this.handleSetColor),this.removeListener(Lr.VISIBLE_SET,this.handleSetVisible),this.removeListener(Lr.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.removeListener(Lr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.removeListener(Lr.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.removeListener(Lr.VIEW_MODE_SET,this.handleSetViewMode),this.removeListener(Mr.SIDEBAR_ANNOTATION_UPDATE,this.handleSidebarAnnotationUpdate),this.removeListener(Mr.SIDEBAR_REPLY_CREATE,this.handleSidebarReplyCreate),this.removeListener(Mr.SIDEBAR_REPLY_UPDATE,this.handleSidebarReplyUpdate),this.removeListener(Mr.SIDEBAR_REPLY_DELETE,this.handleSidebarReplyDelete)}init(e=1,t=0){this.containerEl=this.getElement(this.container),this.annotatedEl=this.getAnnotatedElement(),this.annotatedEl&&this.containerEl?(this.annotatedEl.classList.add(di),this.containerEl.classList.add("ba"),this.popupPortalEl||(this.popupPortalEl=this.containerEl.ownerDocument.createElement("div"),this.popupPortalEl.classList.add("ba-PopupPortal"),this.containerEl.appendChild(this.popupPortalEl)),this.render(),this.store.dispatch(Mt(t)),this.store.dispatch(Rt(e)),this.store.dispatch(ut())):this.emit(Rr.ERROR,this.intl.formatMessage(ci.annotationsLoadError))}isFeatureEnabled(e=""){return h()(this.features,e,!1)}scrollToAnnotation(e){}scrollToBoundingBoxHighlight(e){if(!e||!this.annotatedEl)return;const t=Fr(this.store.getState()).find(t=>t.id===e);if(!t)return;const r=this.getScrollReferenceForHighlight(t);if(!r)return;const n={x:t.x+t.width/2,y:t.y+t.height/2};li(this.annotatedEl,r,{offsets:this.getAdjustedScrollOffsets(n),smooth:!0})}getScrollReferenceForHighlight(e){}getAdjustedScrollOffsets(e){return e}setBoundingBoxHighlights(e){this.store.dispatch(Er(e)),this.render()}setViewMode(e){this.store.dispatch(jt(e)),this.render()}selectBoundingBoxHighlight(e){this.store.dispatch(_r(e)),e&&this.scrollToBoundingBoxHighlight(e)}setActiveId(e){this.store.dispatch(ct(e))}setColor(e){this.store.dispatch(zt(e))}setVisibility(e){this.containerEl&&(e?this.containerEl.classList.remove("is-hidden"):this.containerEl.classList.add("is-hidden"))}toggleAnnotationMode(e){this.store.dispatch(Vt(e))}getAnnotatedElement(){}getElement(e){return"string"==typeof e?document.querySelector(e):e}hydrate(){this.store.dispatch(Ze())}render(){}postRender(){this.annotatedEl&&(this.deselectManager&&this.deselectManager.destroy(),this.deselectManager=new ei({referenceEl:this.annotatedEl}),this.deselectManager.render({store:this.store}))}}var hi=l(2326),gi=l.n(hi),yi=l(818),mi=l.n(yi),vi=l(2485),bi=l.n(vi);function wi(){return wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wi.apply(this,arguments)}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class xi extends Go.Component{constructor(){super(...arguments),Si(this,"focusFirstElement",()=>{if(!this.el)return;const e=mi()(this.el);e.length>3?e[1].focus():this.trapEl&&this.trapEl.focus()}),Si(this,"focusLastElement",()=>{if(!this.el)return;const e=mi()(this.el);e.length>3?e[e.length-3].focus():this.trapEl&&this.trapEl.focus()}),Si(this,"handleElKeyDown",e=>{const{handleOverlayKeyDown:t}=this.props;this.el===document.activeElement&&"Tab"===e.key&&(this.focusFirstElement(),e.stopPropagation(),e.preventDefault()),t&&t(e)}),Si(this,"handleTrapElKeyDown",e=>{"Tab"===e.key&&(e.stopPropagation(),e.preventDefault())})}componentDidMount(){this.props.shouldDefaultFocus?setTimeout(()=>{this.previousFocusEl=document.activeElement,this.focusFirstElement()},0):setTimeout(()=>{this.el&&this.el.focus()},0)}componentWillUnmount(){setTimeout(()=>{this.previousFocusEl&&this.previousFocusEl.focus()},0)}render(){const e=this.props,{children:t,className:r,getRef:n,handleOverlayKeyDown:o,shouldDefaultFocus:i,shouldOutlineFocus:a}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","className","getRef","handleOverlayKeyDown","shouldDefaultFocus","shouldOutlineFocus"]);return Go.createElement("div",wi({ref:e=>{this.el=e,n&&n(e)},className:bi()(r,{"should-outline-focus":a}),onKeyDown:this.handleElKeyDown},s),Go.createElement("i",{"aria-hidden":!0,onFocus:this.focusLastElement,tabIndex:"0"}),t,Go.createElement("i",{"aria-hidden":!0,onFocus:this.focusFirstElement,tabIndex:"0"}),Go.createElement("i",{ref:e=>{this.trapEl=e},"aria-hidden":!0,onKeyDown:this.handleTrapElKeyDown,tabIndex:"0"}))}}const Ei=xi;var _i=l(5143);const Oi=new _i.CompositeDecorator([{strategy:(e,t,r)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===r.getEntity(t).getType()},t)},component:e=>{let{contentState:t,entityKey:r,children:n}=e,o="";return r&&(o=t.getEntity(r).getData().id),Go.createElement("a",{href:"/profile/".concat(o)},n)}}]),Ci=e=>{const t=/([@@﹫])\[([0-9]+):([^\]]+)]/gi.exec(e);if(!t)return null;const[r,n,o,i]=t,a=t.index;return{start:a,end:a+r.length,data:{id:o,name:i,content:"".concat(n).concat(i)}}},ki=["@","@","﹫"].reduce((e,t)=>"".concat(e,"\\").concat(t),""),Ai=new RegExp("([".concat(ki,"])([^").concat(ki,"]*)$"));function Ti(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai;const r=e.getCurrentContent(),n=e.getSelection(),o=n.getStartKey(),i=r.getBlockForKey(o),a=n.getStartOffset();let s=null;return i.findEntityRanges(e=>null===e.getEntity(),(e,r)=>{if(e<=a&&a<=r){const r=i.getText().substr(e,a-e).match(t);r&&(s={blockID:o,mentionString:r[2],mentionTrigger:r[1],start:e+r.index,end:a})}return null}),s}function Di(e){const t=e.getCurrentContent(),r=t.getBlockMap(),n=[];let o=!1;return r.forEach(e=>{const r=e.getText(),i=[];e.findEntityRanges(()=>!0,(n,a)=>{const s=e.getEntityAt(n);if(s){const e=t.getEntity(s),c="@[".concat(e.getData().id,":").concat(r.substring(n+1,a),"]");i.push(c),o=!0}else i.push(r.substring(n,a))}),n.push(i.join(""))}),{text:n.join("\n"),hasMention:o}}var Ii=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Pi}(e)}(e)},Pi="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Li(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ri((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function Mi(e,t,r){return e.concat(t).map(function(e){return Li(e,r)})}function Ri(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Mi,r.isMergeableObject=r.isMergeableObject||Ii;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=Li(e[t],r)}),Object.keys(t).forEach(function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=Ri(e[o],t[o],r):n[o]=Li(t[o],r)}),n}(e,t,r):Li(t,r)}Ri.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return Ri(e,r,t)},{})};const ji=Ri,Ni="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;var Fi="object"==typeof self&&self&&self.Object===Object&&self;const Bi=Ni||Fi||Function("return this")(),Ui=Bi.Symbol;var Ki=Object.prototype,Hi=Ki.hasOwnProperty,zi=Ki.toString,Vi=Ui?Ui.toStringTag:void 0;var qi=Object.prototype.toString;var Gi=Ui?Ui.toStringTag:void 0;const Wi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Gi&&Gi in Object(e)?function(e){var t=Hi.call(e,Vi),r=e[Vi];try{e[Vi]=void 0;var n=!0}catch(e){}var o=zi.call(e);return n&&(t?e[Vi]=r:delete e[Vi]),o}(e):function(e){return qi.call(e)}(e)},$i=function(e,t){return function(r){return e(t(r))}},Yi=$i(Object.getPrototypeOf,Object),Xi=function(e){return null!=e&&"object"==typeof e};var Zi=Function.prototype,Ji=Object.prototype,Qi=Zi.toString,ea=Ji.hasOwnProperty,ta=Qi.call(Object);const ra=function(e){if(!Xi(e)||"[object Object]"!=Wi(e))return!1;var t=Yi(e);if(null===t)return!0;var r=ea.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Qi.call(r)==ta},na=function(e,t){return e===t||e!=e&&t!=t},oa=function(e,t){for(var r=e.length;r--;)if(na(e[r][0],t))return r;return-1};var ia=Array.prototype.splice;function aa(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}aa.prototype.clear=function(){this.__data__=[],this.size=0},aa.prototype.delete=function(e){var t=this.__data__,r=oa(t,e);return!(r<0||(r==t.length-1?t.pop():ia.call(t,r,1),--this.size,0))},aa.prototype.get=function(e){var t=this.__data__,r=oa(t,e);return r<0?void 0:t[r][1]},aa.prototype.has=function(e){return oa(this.__data__,e)>-1},aa.prototype.set=function(e,t){var r=this.__data__,n=oa(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const sa=aa,ca=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ua=function(e){if(!ca(e))return!1;var t=Wi(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},la=Bi["__core-js_shared__"];var da,fa=(da=/[^.]+$/.exec(la&&la.keys&&la.keys.IE_PROTO||""))?"Symbol(src)_1."+da:"";var pa=Function.prototype.toString;const ha=function(e){if(null!=e){try{return pa.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ga=/^\[object .+?Constructor\]$/,ya=Function.prototype,ma=Object.prototype,va=ya.toString,ba=ma.hasOwnProperty,wa=RegExp("^"+va.call(ba).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Sa=function(e){return!(!ca(e)||(t=e,fa&&fa in t))&&(ua(e)?wa:ga).test(ha(e));var t},xa=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Sa(r)?r:void 0},Ea=xa(Bi,"Map"),_a=xa(Object,"create");var Oa=Object.prototype.hasOwnProperty;var Ca=Object.prototype.hasOwnProperty;function ka(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ka.prototype.clear=function(){this.__data__=_a?_a(null):{},this.size=0},ka.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ka.prototype.get=function(e){var t=this.__data__;if(_a){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Oa.call(t,e)?t[e]:void 0},ka.prototype.has=function(e){var t=this.__data__;return _a?void 0!==t[e]:Ca.call(t,e)},ka.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_a&&void 0===t?"__lodash_hash_undefined__":t,this};const Aa=ka,Ta=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function Da(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Da.prototype.clear=function(){this.size=0,this.__data__={hash:new Aa,map:new(Ea||sa),string:new Aa}},Da.prototype.delete=function(e){var t=Ta(this,e).delete(e);return this.size-=t?1:0,t},Da.prototype.get=function(e){return Ta(this,e).get(e)},Da.prototype.has=function(e){return Ta(this,e).has(e)},Da.prototype.set=function(e,t){var r=Ta(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};const Ia=Da;function Pa(e){var t=this.__data__=new sa(e);this.size=t.size}Pa.prototype.clear=function(){this.__data__=new sa,this.size=0},Pa.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Pa.prototype.get=function(e){return this.__data__.get(e)},Pa.prototype.has=function(e){return this.__data__.has(e)},Pa.prototype.set=function(e,t){var r=this.__data__;if(r instanceof sa){var n=r.__data__;if(!Ea||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ia(n)}return r.set(e,t),this.size=r.size,this};const La=Pa,Ma=function(){try{var e=xa(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ra=function(e,t,r){"__proto__"==t&&Ma?Ma(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var ja=Object.prototype.hasOwnProperty;const Na=function(e,t,r){var n=e[t];ja.call(e,t)&&na(n,r)&&(void 0!==r||t in e)||Ra(e,t,r)},Fa=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?Ra(r,s,c):Na(r,s,c)}return r},Ba=function(e){return Xi(e)&&"[object Arguments]"==Wi(e)};var Ua=Object.prototype,Ka=Ua.hasOwnProperty,Ha=Ua.propertyIsEnumerable;const za=Ba(function(){return arguments}())?Ba:function(e){return Xi(e)&&Ka.call(e,"callee")&&!Ha.call(e,"callee")},Va=Array.isArray;var qa="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ga=qa&&"object"==typeof module&&module&&!module.nodeType&&module,Wa=Ga&&Ga.exports===qa?Bi.Buffer:void 0;const $a=(Wa?Wa.isBuffer:void 0)||function(){return!1};var Ya=/^(?:0|[1-9]\d*)$/;const Xa=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ya.test(e))&&e>-1&&e%1==0&&e<t},Za=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ja={};Ja["[object Float32Array]"]=Ja["[object Float64Array]"]=Ja["[object Int8Array]"]=Ja["[object Int16Array]"]=Ja["[object Int32Array]"]=Ja["[object Uint8Array]"]=Ja["[object Uint8ClampedArray]"]=Ja["[object Uint16Array]"]=Ja["[object Uint32Array]"]=!0,Ja["[object Arguments]"]=Ja["[object Array]"]=Ja["[object ArrayBuffer]"]=Ja["[object Boolean]"]=Ja["[object DataView]"]=Ja["[object Date]"]=Ja["[object Error]"]=Ja["[object Function]"]=Ja["[object Map]"]=Ja["[object Number]"]=Ja["[object Object]"]=Ja["[object RegExp]"]=Ja["[object Set]"]=Ja["[object String]"]=Ja["[object WeakMap]"]=!1;const Qa=function(e){return function(t){return e(t)}};var es="object"==typeof exports&&exports&&!exports.nodeType&&exports,ts=es&&"object"==typeof module&&module&&!module.nodeType&&module,rs=ts&&ts.exports===es&&Ni.process;const ns=function(){try{return ts&&ts.require&&ts.require("util").types||rs&&rs.binding&&rs.binding("util")}catch(e){}}();var os=ns&&ns.isTypedArray;const is=os?Qa(os):function(e){return Xi(e)&&Za(e.length)&&!!Ja[Wi(e)]};var as=Object.prototype.hasOwnProperty;const ss=function(e,t){var r=Va(e),n=!r&&za(e),o=!r&&!n&&$a(e),i=!r&&!n&&!o&&is(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!as.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Xa(u,c))||s.push(u);return s};var cs=Object.prototype;const us=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||cs)},ls=$i(Object.keys,Object);var ds=Object.prototype.hasOwnProperty;const fs=function(e){return null!=e&&Za(e.length)&&!ua(e)},ps=function(e){return fs(e)?ss(e):function(e){if(!us(e))return ls(e);var t=[];for(var r in Object(e))ds.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)};var hs=Object.prototype.hasOwnProperty;const gs=function(e){if(!ca(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=us(e),r=[];for(var n in e)("constructor"!=n||!t&&hs.call(e,n))&&r.push(n);return r},ys=function(e){return fs(e)?ss(e,!0):gs(e)};var ms="object"==typeof exports&&exports&&!exports.nodeType&&exports,vs=ms&&"object"==typeof module&&module&&!module.nodeType&&module,bs=vs&&vs.exports===ms?Bi.Buffer:void 0,ws=bs?bs.allocUnsafe:void 0;const Ss=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},xs=function(){return[]};var Es=Object.prototype.propertyIsEnumerable,_s=Object.getOwnPropertySymbols;const Os=_s?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(_s(e),function(t){return Es.call(e,t)}))}:xs,Cs=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},ks=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Cs(t,Os(e)),e=Yi(e);return t}:xs,As=function(e,t,r){var n=t(e);return Va(e)?n:Cs(n,r(e))},Ts=function(e){return As(e,ps,Os)},Ds=function(e){return As(e,ys,ks)},Is=xa(Bi,"DataView"),Ps=xa(Bi,"Promise"),Ls=xa(Bi,"Set"),Ms=xa(Bi,"WeakMap");var Rs="[object Map]",js="[object Promise]",Ns="[object Set]",Fs="[object WeakMap]",Bs="[object DataView]",Us=ha(Is),Ks=ha(Ea),Hs=ha(Ps),zs=ha(Ls),Vs=ha(Ms),qs=Wi;(Is&&qs(new Is(new ArrayBuffer(1)))!=Bs||Ea&&qs(new Ea)!=Rs||Ps&&qs(Ps.resolve())!=js||Ls&&qs(new Ls)!=Ns||Ms&&qs(new Ms)!=Fs)&&(qs=function(e){var t=Wi(e),r="[object Object]"==t?e.constructor:void 0,n=r?ha(r):"";if(n)switch(n){case Us:return Bs;case Ks:return Rs;case Hs:return js;case zs:return Ns;case Vs:return Fs}return t});const Gs=qs;var Ws=Object.prototype.hasOwnProperty;const $s=Bi.Uint8Array,Ys=function(e){var t=new e.constructor(e.byteLength);return new $s(t).set(new $s(e)),t};var Xs=/\w*$/;var Zs=Ui?Ui.prototype:void 0,Js=Zs?Zs.valueOf:void 0;const Qs=function(e,t,r){var n,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Ys(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?Ys(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?Ys(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,Xs.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=e,Js?Object(Js.call(n)):{}}};var ec=Object.create;const tc=function(){function e(){}return function(t){if(!ca(t))return{};if(ec)return ec(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var rc=ns&&ns.isMap;const nc=rc?Qa(rc):function(e){return Xi(e)&&"[object Map]"==Gs(e)};var oc=ns&&ns.isSet;const ic=oc?Qa(oc):function(e){return Xi(e)&&"[object Set]"==Gs(e)};var ac="[object Arguments]",sc="[object Function]",cc="[object Object]",uc={};uc[ac]=uc["[object Array]"]=uc["[object ArrayBuffer]"]=uc["[object DataView]"]=uc["[object Boolean]"]=uc["[object Date]"]=uc["[object Float32Array]"]=uc["[object Float64Array]"]=uc["[object Int8Array]"]=uc["[object Int16Array]"]=uc["[object Int32Array]"]=uc["[object Map]"]=uc["[object Number]"]=uc[cc]=uc["[object RegExp]"]=uc["[object Set]"]=uc["[object String]"]=uc["[object Symbol]"]=uc["[object Uint8Array]"]=uc["[object Uint8ClampedArray]"]=uc["[object Uint16Array]"]=uc["[object Uint32Array]"]=!0,uc["[object Error]"]=uc[sc]=uc["[object WeakMap]"]=!1;const lc=function e(t,r,n,o,i,a){var s,c=1&r,u=2&r,l=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!ca(t))return t;var d=Va(t);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Ws.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return Ss(t,s)}else{var f=Gs(t),p=f==sc||"[object GeneratorFunction]"==f;if($a(t))return function(e,t){if(t)return e.slice();var r=e.length,n=ws?ws(r):new e.constructor(r);return e.copy(n),n}(t,c);if(f==cc||f==ac||p&&!i){if(s=u||p?{}:function(e){return"function"!=typeof e.constructor||us(e)?{}:tc(Yi(e))}(t),!c)return u?function(e,t){return Fa(e,ks(e),t)}(t,function(e,t){return e&&Fa(t,ys(t),e)}(s,t)):function(e,t){return Fa(e,Os(e),t)}(t,function(e,t){return e&&Fa(t,ps(t),e)}(s,t))}else{if(!uc[f])return i?t:{};s=Qs(t,f,c)}}a||(a=new La);var h=a.get(t);if(h)return h;a.set(t,s),ic(t)?t.forEach(function(o){s.add(e(o,r,n,o,t,a))}):nc(t)&&t.forEach(function(o,i){s.set(i,e(o,r,n,i,t,a))});var g=d?void 0:(l?u?Ds:Ts:u?ys:ps)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(g||t,function(o,i){g&&(o=t[i=o]),Na(s,i,e(o,r,n,i,t,a))}),s},dc=function(e){return lc(e,5)};var fc=l(115),pc=l.n(fc);const hc=function(e){return lc(e,4)},gc=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},yc=function(e){return"symbol"==typeof e||Xi(e)&&"[object Symbol]"==Wi(e)};function mc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(mc.Cache||Ia),r}mc.Cache=Ia;var vc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bc=/\\(\\)?/g;const wc=(Sc=mc(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vc,function(e,r,n,o){t.push(n?o.replace(bc,"$1"):r||e)}),t},function(e){return 500===xc.size&&xc.clear(),e}),xc=Sc.cache,Sc);var Sc,xc;const Ec=function(e){if("string"==typeof e||yc(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var _c=Ui?Ui.prototype:void 0,Oc=_c?_c.toString:void 0;const Cc=function e(t){if("string"==typeof t)return t;if(Va(t))return gc(t,e)+"";if(yc(t))return Oc?Oc.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},kc=function(e){return null==e?"":Cc(e)},Ac=function(e){return Va(e)?gc(e,Ec):yc(e)?[e]:Ss(wc(kc(e)))};var Tc=l(4146),Dc=l.n(Tc);function Ic(){return Ic=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ic.apply(this,arguments)}function Pc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Lc(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rc=(0,Go.createContext)(void 0);Rc.displayName="FormikContext";var jc=Rc.Provider;Rc.Consumer;var Nc=function(e){return Array.isArray(e)&&0===e.length},Fc=function(e){return"function"==typeof e},Bc=function(e){return null!==e&&"object"==typeof e},Uc=function(e){return String(Math.floor(Number(e)))===e},Kc=function(e){return"[object String]"===Object.prototype.toString.call(e)},Hc=function(e){return 0===Go.Children.count(e)},zc=function(e){return Bc(e)&&Fc(e.then)};function Vc(e,t,r,n){void 0===n&&(n=0);for(var o=Ac(t);e&&n<o.length;)e=e[o[n++]];return n===o.length||e?void 0===e?r:e:r}function qc(e,t,r){for(var n=hc(e),o=n,i=0,a=Ac(t);i<a.length-1;i++){var s=a[i],c=Vc(e,a.slice(0,i+1));if(c&&(Bc(c)||Array.isArray(c)))o=o[s]=hc(c);else{var u=a[i+1];o=o[s]=Uc(u)&&Number(u)>=0?[]:{}}}return(0===i?e:o)[a[i]]===r?e:(void 0===r?delete o[a[i]]:o[a[i]]=r,0===i&&void 0===r&&delete n[a[i]],n)}function Gc(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];Bc(s)?r.get(s)||(r.set(s,!0),n[a]=Array.isArray(s)?[]:{},Gc(s,t,r,n[a])):n[a]=t}return n}var Wc={},$c={};function Yc(e){var t=e.validateOnChange,r=void 0===t||t,n=e.validateOnBlur,o=void 0===n||n,i=e.validateOnMount,a=void 0!==i&&i,s=e.isInitialValid,c=e.enableReinitialize,u=void 0!==c&&c,l=e.onSubmit,d=Lc(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Ic({validateOnChange:r,validateOnBlur:o,validateOnMount:a,onSubmit:l},d),p=(0,Go.useRef)(f.initialValues),h=(0,Go.useRef)(f.initialErrors||Wc),g=(0,Go.useRef)(f.initialTouched||$c),y=(0,Go.useRef)(f.initialStatus),m=(0,Go.useRef)(!1),v=(0,Go.useRef)({});(0,Go.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var b=(0,Go.useState)(0)[1],w=(0,Go.useRef)({values:dc(f.initialValues),errors:dc(f.initialErrors)||Wc,touched:dc(f.initialTouched)||$c,status:dc(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=w.current,x=(0,Go.useCallback)(function(e){var t=w.current;w.current=function(e,t){switch(t.type){case"SET_VALUES":return Ic({},e,{values:t.payload});case"SET_TOUCHED":return Ic({},e,{touched:t.payload});case"SET_ERRORS":return pc()(e.errors,t.payload)?e:Ic({},e,{errors:t.payload});case"SET_STATUS":return Ic({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ic({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ic({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ic({},e,{values:qc(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ic({},e,{touched:qc(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ic({},e,{errors:qc(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ic({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ic({},e,{touched:Gc(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Ic({},e,{isSubmitting:!1});default:return e}}(t,e),t!==w.current&&b(function(e){return e+1})},[]),E=(0,Go.useCallback)(function(e,t){return new Promise(function(r,n){var o=f.validate(e,t);null==o?r(Wc):zc(o)?o.then(function(e){r(e||Wc)},function(e){n(e)}):r(o)})},[f.validate]),_=(0,Go.useCallback)(function(e,t){var r=f.validationSchema,n=Fc(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r){void 0===r&&(r=!1);var n=Zc(e);return t[r?"validateSync":"validate"](n,{abortEarly:!1,context:n})}(e,n);return new Promise(function(e,t){o.then(function(){e(Wc)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return qc(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;Vc(t,a.path)||(t=qc(t,a.path,a.message))}}return t}(r)):t(r)})})},[f.validationSchema]),O=(0,Go.useCallback)(function(e,t){return new Promise(function(r){return r(v.current[e].validate(t))})},[]),C=(0,Go.useCallback)(function(e){var t=Object.keys(v.current).filter(function(e){return Fc(v.current[e].validate)}),r=t.length>0?t.map(function(t){return O(t,Vc(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=qc(e,t[n],r)),e},{})})},[O]),k=(0,Go.useCallback)(function(e){return Promise.all([C(e),f.validationSchema?_(e):{},f.validate?E(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return ji.all([t,r,n],{arrayMerge:Jc})})},[f.validate,f.validationSchema,C,E,_]),A=eu(function(e){return void 0===e&&(e=S.values),x({type:"SET_ISVALIDATING",payload:!0}),k(e).then(function(e){return m.current&&(x({type:"SET_ISVALIDATING",payload:!1}),x({type:"SET_ERRORS",payload:e})),e})});(0,Go.useEffect)(function(){a&&!0===m.current&&pc()(p.current,f.initialValues)&&A(p.current)},[a,A]);var T=(0,Go.useCallback)(function(e){var t=e&&e.values?e.values:p.current,r=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},o=e&&e.status?e.status:y.current?y.current:f.initialStatus;p.current=t,h.current=r,g.current=n,y.current=o;var i=function(){x({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var a=f.onReset(S.values,$);zc(a)?a.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);(0,Go.useEffect)(function(){!0!==m.current||pc()(p.current,f.initialValues)||u&&(p.current=f.initialValues,T(),a&&A(p.current))},[u,f.initialValues,T,a,A]),(0,Go.useEffect)(function(){u&&!0===m.current&&!pc()(h.current,f.initialErrors)&&(h.current=f.initialErrors||Wc,x({type:"SET_ERRORS",payload:f.initialErrors||Wc}))},[u,f.initialErrors]),(0,Go.useEffect)(function(){u&&!0===m.current&&!pc()(g.current,f.initialTouched)&&(g.current=f.initialTouched||$c,x({type:"SET_TOUCHED",payload:f.initialTouched||$c}))},[u,f.initialTouched]),(0,Go.useEffect)(function(){u&&!0===m.current&&!pc()(y.current,f.initialStatus)&&(y.current=f.initialStatus,x({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var D=eu(function(e){if(v.current[e]&&Fc(v.current[e].validate)){var t=Vc(S.values,e),r=v.current[e].validate(t);return zc(r)?(x({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){x({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),x({type:"SET_ISVALIDATING",payload:!1})})):(x({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return f.validationSchema?(x({type:"SET_ISVALIDATING",payload:!0}),_(S.values,e).then(function(e){return e}).then(function(t){x({type:"SET_FIELD_ERROR",payload:{field:e,value:Vc(t,e)}}),x({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),I=(0,Go.useCallback)(function(e,t){var r=t.validate;v.current[e]={validate:r}},[]),P=(0,Go.useCallback)(function(e){delete v.current[e]},[]),L=eu(function(e,t){return x({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?A(S.values):Promise.resolve()}),M=(0,Go.useCallback)(function(e){x({type:"SET_ERRORS",payload:e})},[]),R=eu(function(e,t){var n=Fc(e)?e(S.values):e;return x({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?A(n):Promise.resolve()}),j=(0,Go.useCallback)(function(e,t){x({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),N=eu(function(e,t,n){var o=Fc(t)?t(Vc(S.values,e)):t;return x({type:"SET_FIELD_VALUE",payload:{field:e,value:o}}),(void 0===n?r:n)?A(qc(S.values,e,o)):Promise.resolve()}),F=(0,Go.useCallback)(function(e,t){var r,n=t,o=e;if(!Kc(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,c=i.id,u=i.value,l=i.checked,d=(i.outerHTML,i.options),f=i.multiple;n=t||s||c,o=/number|range/.test(a)?(r=parseFloat(u),isNaN(r)?"":r):/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],o=!1,i=-1;if(Array.isArray(e))n=e,o=(i=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!o?n.concat(r):o?n.slice(0,i).concat(n.slice(i+1)):n}(Vc(S.values,n),l,u):d&&f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):u}n&&N(n,o)},[N,S.values]),B=eu(function(e){if(Kc(e))return function(t){return F(t,e)};F(e)}),U=eu(function(e,t,r){return void 0===t&&(t=!0),x({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?A(S.values):Promise.resolve()}),K=(0,Go.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,i=(r.outerHTML,t||n||o);U(i,!0)},[U]),H=eu(function(e){if(Kc(e))return function(t){return K(t,e)};K(e)}),z=(0,Go.useCallback)(function(e){Fc(e)?x({type:"SET_FORMIK_STATE",payload:e}):x({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),V=(0,Go.useCallback)(function(e){x({type:"SET_STATUS",payload:e})},[]),q=(0,Go.useCallback)(function(e){x({type:"SET_ISSUBMITTING",payload:e})},[]),G=eu(function(){return x({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Y()))return}catch(e){throw e}return Promise.resolve(r).then(function(e){return m.current&&x({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(m.current)throw x({type:"SUBMIT_FAILURE"}),e})}if(m.current&&(x({type:"SUBMIT_FAILURE"}),t))throw e})}),W=eu(function(e){e&&e.preventDefault&&Fc(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Fc(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),$={resetForm:T,validateForm:A,validateField:D,setErrors:M,setFieldError:j,setFieldTouched:U,setFieldValue:N,setStatus:V,setSubmitting:q,setTouched:L,setValues:R,setFormikState:z,submitForm:G},Y=eu(function(){return l(S.values,$)}),X=eu(function(e){e&&e.preventDefault&&Fc(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Fc(e.stopPropagation)&&e.stopPropagation(),T()}),Z=(0,Go.useCallback)(function(e){return{value:Vc(S.values,e),error:Vc(S.errors,e),touched:!!Vc(S.touched,e),initialValue:Vc(p.current,e),initialTouched:!!Vc(g.current,e),initialError:Vc(h.current,e)}},[S.errors,S.touched,S.values]),J=(0,Go.useCallback)(function(e){return{setValue:function(t,r){return N(e,t,r)},setTouched:function(t,r){return U(e,t,r)},setError:function(t){return j(e,t)}}},[N,U,j]),Q=(0,Go.useCallback)(function(e){var t=Bc(e),r=t?e.name:e,n=Vc(S.values,r),o={name:r,value:n,onChange:B,onBlur:H};if(t){var i=e.type,a=e.value,s=e.as,c=e.multiple;"checkbox"===i?void 0===a?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(a)),o.value=a):"radio"===i?(o.checked=n===a,o.value=a):"select"===s&&c&&(o.value=o.value||[],o.multiple=!0)}return o},[H,B,S.values]),ee=(0,Go.useMemo)(function(){return!pc()(p.current,S.values)},[p.current,S.values]),te=(0,Go.useMemo)(function(){return void 0!==s?ee?S.errors&&0===Object.keys(S.errors).length:!1!==s&&Fc(s)?s(f):s:S.errors&&0===Object.keys(S.errors).length},[s,ee,S.errors,f]);return Ic({},S,{initialValues:p.current,initialErrors:h.current,initialTouched:g.current,initialStatus:y.current,handleBlur:H,handleChange:B,handleReset:X,handleSubmit:W,resetForm:T,setErrors:M,setFormikState:z,setFieldTouched:U,setFieldValue:N,setFieldError:j,setStatus:V,setSubmitting:q,setTouched:L,setValues:R,submitForm:G,validateForm:A,validateField:D,isValid:te,dirty:ee,unregisterField:P,registerField:I,getFieldProps:Q,getFieldMeta:Z,getFieldHelpers:J,validateOnBlur:o,validateOnChange:r,validateOnMount:a})}function Xc(e){var t=Yc(e),r=e.component,n=e.children,o=e.render,i=e.innerRef;return(0,Go.useImperativeHandle)(i,function(){return t}),(0,Go.createElement)(jc,{value:t},r?(0,Go.createElement)(r,t):o?o(t):n?Fc(n)?n(t):Hc(n)?null:Go.Children.only(n):null)}function Zc(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map(function(e){return!0===Array.isArray(e)||ra(e)?Zc(e):""!==e?e:void 0}):ra(e[n])?t[n]=Zc(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Jc(e,t,r){var n=e.slice();return t.forEach(function(t,o){if(void 0===n[o]){var i=!1!==r.clone&&r.isMergeableObject(t);n[o]=i?ji(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=ji(e[o],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var Qc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Go.useLayoutEffect:Go.useEffect;function eu(e){var t=(0,Go.useRef)(e);return Qc(function(){t.current=e}),(0,Go.useCallback)(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}var tu=(0,Go.forwardRef)(function(e,t){var r=e.action,n=Lc(e,["action"]),o=null!=r?r:"#",i=(0,Go.useContext)(Rc),a=i.handleReset,s=i.handleSubmit;return(0,Go.createElement)("form",Ic({onSubmit:s,ref:t,onReset:a,action:o},n))});tu.displayName="Form";var ru=function(e,t,r){var n=nu(e);return n.splice(t,0,r),n},nu=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(Ic({},e,{length:t+1}))}return[]},ou=function(e,t){var r="function"==typeof e?e:t;return function(e){if(Array.isArray(e)||Bc(e)){var t=nu(e);return r(t)}return e}},iu=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,i=o.name;(0,o.formik.setFormikState)(function(r){var o=ou(n,e),a=ou(t,e),s=qc(r.values,i,e(Vc(r.values,i))),c=n?o(Vc(r.errors,i)):void 0,u=t?a(Vc(r.touched,i)):void 0;return Nc(c)&&(c=void 0),Nc(u)&&(u=void 0),Ic({},r,{values:s,errors:n?qc(r.errors,i,c):r.errors,touched:t?qc(r.touched,i,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(nu(t),[dc(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=nu(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=nu(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return ru(r,e,t)},function(t){return ru(t,e,null)},function(t){return ru(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=nu(e);return n[t]=r,n}(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t=n.length,n},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Mc(r)),r.pop=r.pop.bind(Mc(r)),r}Pc(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!pc()(Vc(e.formik.values,e.name),Vc(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?nu(r):[];return t||(t=n[e]),Fc(n.splice)&&n.splice(e,1),Fc(n.every)&&n.every(function(e){return void 0===e})?[]:n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,o=t.children,i=t.name,a=Ic({},e,{form:Lc(t.formik,["validate","validationSchema"]),name:i});return r?(0,Go.createElement)(r,a):n?n(a):o?"function"==typeof o?o(a):Hc(o)?null:Go.Children.only(o):null},t}(Go.Component);iu.defaultProps={validateOnChange:!0};const au=(0,ri.defineMessages)({ariaLabelComment:{id:"ba.popup.reply.comment",defaultMessage:"Comment"},ariaLabelMentionLoading:{id:"ba.popup.reply.mentionLoading",defaultMessage:"Loading users..."},ariaLabelMentionSelector:{id:"ba.popup.reply.mentionSelector",defaultMessage:"Mention a collaborator"},ariaLabelReplyField:{id:"ba.popup.reply.field",defaultMessage:"Type a comment"},buttonCancel:{id:"ba.popups.cancel",defaultMessage:"Cancel"},buttonPost:{id:"ba.popups.post",defaultMessage:"Post"},drawingButtonAddComment:{id:"ba.popups.drawing.addComment",defaultMessage:"Add Comment"},drawingButtonDelete:{id:"ba.popups.drawing.delete",defaultMessage:"Delete"},drawingButtonRedo:{id:"ba.popups.drawing.redo",defaultMessage:"Redo"},drawingButtonUndo:{id:"ba.popups.drawing.undo",defaultMessage:"Undo"},fieldPlaceholder:{id:"ba.popups.replyField.placeholder",defaultMessage:"Type a comment..."},popupHighlightPromoter:{id:"ba.popups.popupHighlight.promoter",defaultMessage:"Highlight and Comment"},popupHighlightRestrictedPrompt:{id:"ba.popups.popupHighlight.restrictedPrompt",defaultMessage:"Comments restricted to single page"},popupListPrompt:{id:"ba.popups.popupList.prompt",defaultMessage:"Mention someone to notify them"},regionCursorPrompt:{id:"ba.popups.popupCursor.regionPrompt",defaultMessage:"Draw a box to comment"}}),su=["children","isDisabled","isPrimary","onClick"];function cu(e){let{children:t,isDisabled:r,isPrimary:n,onClick:o=Ir()}=e,i=lt(e,su);return Wo().createElement("button",y({"aria-disabled":!!r||void 0,className:bi()("btn",{"btn-primary":n,"is-disabled":r}),onClick:e=>{if(r)return e.preventDefault(),void e.stopPropagation();o(e)},type:"button"},i),t)}const uu=e=>e.users.collaborators;var lu=l(8221),du=l.n(lu),fu=l(2193),pu=l.n(fu);function hu(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function gu(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function yu(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return gu(r.overflowY,t)||gu(r.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function mu(e,t,r,n,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=r||a>=t&&s>=r?i-e-n:a>t&&s<r||i<e&&s>r?a-t+o:0}const vu=function(e,t){var r=t.scrollMode,n=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!hu(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],l=e;hu(l)&&s(l);){if((l=l.parentNode)===c){u.push(l);break}l===document.body&&yu(l)&&!yu(document.documentElement)||yu(l,a)&&u.push(l)}for(var d=window.visualViewport?visualViewport.width:innerWidth,f=window.visualViewport?visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,v=g.top,b=g.right,w=g.bottom,S=g.left,x="start"===n||"nearest"===n?v:"end"===n?w:v+y/2,E="center"===o?S+m/2:"end"===o?b:S,_=[],O=0;O<u.length;O++){var C=u[O],k=C.getBoundingClientRect(),A=k.height,T=k.width,D=k.top,I=k.right,P=k.bottom,L=k.left;if("if-needed"===r&&v>=0&&S>=0&&w<=f&&b<=d&&v>=D&&w<=P&&S>=L&&b<=I)return _;var M=getComputedStyle(C),R=parseInt(M.borderLeftWidth,10),j=parseInt(M.borderTopWidth,10),N=parseInt(M.borderRightWidth,10),F=parseInt(M.borderBottomWidth,10),B=0,U=0,K="offsetWidth"in C?C.offsetWidth-C.clientWidth-R-N:0,H="offsetHeight"in C?C.offsetHeight-C.clientHeight-j-F:0;if(c===C)B="start"===n?x:"end"===n?x-f:"nearest"===n?mu(h,h+f,f,j,F,h+x,h+x+y,y):x-f/2,U="start"===o?E:"center"===o?E-d/2:"end"===o?E-d:mu(p,p+d,d,R,N,p+E,p+E+m,m),B=Math.max(0,B+h),U=Math.max(0,U+p);else{B="start"===n?x-D-j:"end"===n?x-P+F+H:"nearest"===n?mu(D,P,A,j,F+H,x,x+y,y):x-(D+A/2)+H/2,U="start"===o?E-L-R:"center"===o?E-(L+T/2)+K/2:"end"===o?E-I+N+K:mu(L,I,T,R,N+K,E,E+m,m);var z=C.scrollLeft,V=C.scrollTop;x+=V-(B=Math.max(0,Math.min(V+B,C.scrollHeight-A+H))),E+=z-(U=Math.max(0,Math.min(z+U,C.scrollWidth-T+K)))}_.push({el:C,top:B,left:U})}return _};function bu(e){return e===Object(e)&&0!==Object.keys(e).length}(Object.getOwnPropertyDescriptor(vu,"name")||{}).writable||Object.defineProperty(vu,"name",{value:"default",configurable:!0});const wu=(e,t)=>{const{className:r,isActive:n,item:o,onClick:i,onMouseDown:a,onMouseEnter:s}=e;if(!o||!o.item||!o.item.name)return null;const{item:c}=o;return Go.createElement("li",{ref:t,"aria-selected":n,className:bi()(r,"ba-ItemRow",{"is-active":n}),"data-resin-target":"atMention","data-testid":"ba-ItemRow",onClick:i,onMouseDown:a,onMouseEnter:s,role:"option"},Go.createElement("div",{className:"ba-ItemRow-name","data-testid":"ba-ItemRow-name"},c.name),"user"===c.type&&c.email&&Go.createElement("div",{className:"ba-ItemRow-email","data-testid":"ba-ItemRow-email"},c.email))},Su=Go.forwardRef(wu),xu=["activeItemIndex","autoScroll","itemRowAs","items","onActivate","onSelect"],Eu=e=>{let{activeItemIndex:t=0,autoScroll:r=!1,itemRowAs:n=Su,items:o,onActivate:i=Ir(),onSelect:a}=e,s=lt(e,xu);const c=Wo().useCallback(e=>{r&&e&&function(e,t){var r=!e.ownerDocument.documentElement.contains(e);if(bu(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:vu(e,t));if(!r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:bu(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(e){var n=e.el,o=e.top,i=e.left;n.scroll&&r?n.scroll({top:o,left:i,behavior:t}):(n.scrollTop=o,n.scrollLeft=i)})})(vu(e,n),n.behavior)}}(e,{scrollMode:"if-needed",block:"nearest"})},[r]);return Wo().createElement("ul",y({className:"ba-ItemList","data-testid":"ba-ItemList",role:"listbox"},s),o.map((e,r)=>Wo().createElement(n,{key:e.id,ref:r===t?c:null,className:"ba-ItemList-row",isActive:r===t,item:e,onClick:e=>{a(r,e)},onMouseDown:e=>{e.preventDefault()},onMouseEnter:()=>{i(r)}})))};function _u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ou(e){return e instanceof _u(e).Element||e instanceof Element}function Cu(e){return e instanceof _u(e).HTMLElement||e instanceof HTMLElement}function ku(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _u(e).ShadowRoot||e instanceof ShadowRoot)}var Au=Math.max,Tu=Math.min,Du=Math.round;function Iu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Pu(){return!/^((?!chrome|android).)*safari/i.test(Iu())}function Lu(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Cu(e)&&(o=e.offsetWidth>0&&Du(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Du(n.height)/e.offsetHeight||1);var a=(Ou(e)?_u(e):window).visualViewport,s=!Pu()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,l=n.width/o,d=n.height/i;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function Mu(e){var t=_u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ru(e){return e?(e.nodeName||"").toLowerCase():null}function ju(e){return((Ou(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Lu(ju(e)).left+Mu(e).scrollLeft}function Fu(e){return _u(e).getComputedStyle(e)}function Bu(e){var t=Fu(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Uu(e,t,r){void 0===r&&(r=!1);var n,o,i=Cu(t),a=Cu(t)&&function(e){var t=e.getBoundingClientRect(),r=Du(t.width)/e.offsetWidth||1,n=Du(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=ju(t),c=Lu(e,a,r),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!r)&&(("body"!==Ru(t)||Bu(s))&&(u=(n=t)!==_u(n)&&Cu(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Mu(n)),Cu(t)?((l=Lu(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Nu(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Ku(e){var t=Lu(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Hu(e){return"html"===Ru(e)?e:e.assignedSlot||e.parentNode||(ku(e)?e.host:null)||ju(e)}function zu(e){return["html","body","#document"].indexOf(Ru(e))>=0?e.ownerDocument.body:Cu(e)&&Bu(e)?e:zu(Hu(e))}function Vu(e,t){var r;void 0===t&&(t=[]);var n=zu(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=_u(n),a=o?[i].concat(i.visualViewport||[],Bu(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Vu(Hu(a)))}function qu(e){return["table","td","th"].indexOf(Ru(e))>=0}function Gu(e){return Cu(e)&&"fixed"!==Fu(e).position?e.offsetParent:null}function Wu(e){for(var t=_u(e),r=Gu(e);r&&qu(r)&&"static"===Fu(r).position;)r=Gu(r);return r&&("html"===Ru(r)||"body"===Ru(r)&&"static"===Fu(r).position)?t:r||function(e){var t=/firefox/i.test(Iu());if(/Trident/i.test(Iu())&&Cu(e)&&"fixed"===Fu(e).position)return null;var r=Hu(e);for(ku(r)&&(r=r.host);Cu(r)&&["html","body"].indexOf(Ru(r))<0;){var n=Fu(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var $u="top",Yu="bottom",Xu="right",Zu="left",Ju="auto",Qu=[$u,Yu,Xu,Zu],el="start",tl="end",rl="viewport",nl="popper",ol=Qu.reduce(function(e,t){return e.concat([t+"-"+el,t+"-"+tl])},[]),il=[].concat(Qu,[Ju]).reduce(function(e,t){return e.concat([t,t+"-"+el,t+"-"+tl])},[]),al=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function sl(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var cl={placement:"bottom",modifiers:[],strategy:"absolute"};function ul(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function ll(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?cl:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},cl,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Ou(e)?Vu(e):e.contextElement?Vu(e.contextElement):[],popper:Vu(t)};var a,u,f=function(e){var t=sl(e);return al.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),u=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return s.orderedModifiers=f.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:n});c.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(ul(t,r)){s.rects={reference:Uu(t,Wu(r),"fixed"===s.options.strategy),popper:Ku(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){l.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),u=!0}};if(!ul(e,t))return l;function d(){c.forEach(function(e){return e()}),c=[]}return l.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),l}}var dl={passive:!0};const fl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,c=_u(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",r.update,dl)}),s&&c.addEventListener("resize",r.update,dl),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",r.update,dl)}),s&&c.removeEventListener("resize",r.update,dl)}},data:{}};function pl(e){return e.split("-")[0]}function hl(e){return e.split("-")[1]}function gl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yl(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?pl(o):null,a=o?hl(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case $u:t={x:s,y:r.y-n.height};break;case Yu:t={x:s,y:r.y+r.height};break;case Xu:t={x:r.x+r.width,y:c};break;case Zu:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=i?gl(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case el:t[u]=t[u]-(r[l]/2-n[l]/2);break;case tl:t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}var ml={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vl(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,g=void 0===h?0:h,y="function"==typeof l?l({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var m=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Zu,w=$u,S=window;if(u){var x=Wu(r),E="clientHeight",_="clientWidth";x===_u(r)&&"static"!==Fu(x=ju(r)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(o===$u||(o===Zu||o===Xu)&&i===tl)&&(w=Yu,g-=(d&&x===S&&S.visualViewport?S.visualViewport.height:x[E])-n.height,g*=c?1:-1),o!==Zu&&(o!==$u&&o!==Yu||i!==tl)||(b=Xu,p-=(d&&x===S&&S.visualViewport?S.visualViewport.width:x[_])-n.width,p*=c?1:-1)}var O,C=Object.assign({position:s},u&&ml),k=!0===l?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Du(r*o)/o||0,y:Du(n*o)/o||0}}({x:p,y:g},_u(r)):{x:p,y:g};return p=k.x,g=k.y,c?Object.assign({},C,((O={})[w]=v?"0":"",O[b]=m?"0":"",O.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",O)):Object.assign({},C,((t={})[w]=v?g+"px":"",t[b]=m?p+"px":"",t.transform="",t))}const bl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,u={placement:pl(t.placement),variation:hl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,vl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,vl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},wl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=il.reduce(function(e,r){return e[r]=function(e,t,r){var n=pl(e),o=[Zu,$u].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Zu,Xu].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var Sl={left:"right",right:"left",bottom:"top",top:"bottom"};function xl(e){return e.replace(/left|right|bottom|top/g,function(e){return Sl[e]})}var El={start:"end",end:"start"};function _l(e){return e.replace(/start|end/g,function(e){return El[e]})}function Ol(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ku(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Cl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kl(e,t,r){return t===rl?Cl(function(e,t){var r=_u(e),n=ju(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=Pu();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+Nu(e),y:c}}(e,r)):Ou(t)?function(e,t){var r=Lu(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Cl(function(e){var t,r=ju(e),n=Mu(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Au(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Au(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Nu(e),c=-n.scrollTop;return"rtl"===Fu(o||r).direction&&(s+=Au(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(ju(e)))}function Al(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Tl(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function Dl(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,c=void 0===s?"clippingParents":s,u=r.rootBoundary,l=void 0===u?rl:u,d=r.elementContext,f=void 0===d?nl:d,p=r.altBoundary,h=void 0!==p&&p,g=r.padding,y=void 0===g?0:g,m=Al("number"!=typeof y?y:Tl(y,Qu)),v=f===nl?"reference":nl,b=e.rects.popper,w=e.elements[h?v:f],S=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Vu(Hu(e)),r=["absolute","fixed"].indexOf(Fu(e).position)>=0&&Cu(e)?Wu(e):e;return Ou(r)?t.filter(function(e){return Ou(e)&&Ol(e,r)&&"body"!==Ru(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=kl(e,r,n);return t.top=Au(o.top,t.top),t.right=Tu(o.right,t.right),t.bottom=Tu(o.bottom,t.bottom),t.left=Au(o.left,t.left),t},kl(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Ou(w)?w:w.contextElement||ju(e.elements.popper),c,l,a),x=Lu(e.elements.reference),E=yl({reference:x,element:b,strategy:"absolute",placement:o}),_=Cl(Object.assign({},b,E)),O=f===nl?_:x,C={top:S.top-O.top+m.top,bottom:O.bottom-S.bottom+m.bottom,left:S.left-O.left+m.left,right:O.right-S.right+m.right},k=e.modifiersData.offset;if(f===nl&&k){var A=k[o];Object.keys(C).forEach(function(e){var t=[Xu,Yu].indexOf(e)>=0?1:-1,r=[$u,Yu].indexOf(e)>=0?"y":"x";C[e]+=A[r]*t})}return C}const Il={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,g=r.allowedAutoPlacements,y=t.options.placement,m=pl(y),v=c||(m!==y&&h?function(e){if(pl(e)===Ju)return[];var t=xl(e);return[_l(e),t,_l(t)]}(y):[xl(y)]),b=[y].concat(v).reduce(function(e,r){return e.concat(pl(r)===Ju?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?il:c,l=hl(n),d=l?s?ol:ol.filter(function(e){return hl(e)===l}):Qu,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,r){return t[r]=Dl(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[pl(r)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:r,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):r)},[]),w=t.rects.reference,S=t.rects.popper,x=new Map,E=!0,_=b[0],O=0;O<b.length;O++){var C=b[O],k=pl(C),A=hl(C)===el,T=[$u,Yu].indexOf(k)>=0,D=T?"width":"height",I=Dl(t,{placement:C,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),P=T?A?Xu:Zu:A?Yu:$u;w[D]>S[D]&&(P=xl(P));var L=xl(P),M=[];if(i&&M.push(I[k]<=0),s&&M.push(I[P]<=0,I[L]<=0),M.every(function(e){return e})){_=C,E=!1;break}x.set(C,M)}if(E)for(var R=function(e){var t=b.find(function(t){var r=x.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},j=h?3:1;j>0&&"break"!==R(j);j--);t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Pl(e,t,r){return Au(e,Tu(t,r))}const Ll={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,u=r.rootBoundary,l=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,g=void 0===h?0:h,y=Dl(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),m=pl(t.placement),v=hl(t.placement),b=!v,w=gl(m),S="x"===w?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,_=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(i){var T,D="y"===w?$u:Zu,I="y"===w?Yu:Xu,P="y"===w?"height":"width",L=x[w],M=L+y[D],R=L-y[I],j=p?-_[P]/2:0,N=v===el?E[P]:_[P],F=v===el?-_[P]:-E[P],B=t.elements.arrow,U=p&&B?Ku(B):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=K[D],z=K[I],V=Pl(0,E[P],U[P]),q=b?E[P]/2-j-V-H-C.mainAxis:N-V-H-C.mainAxis,G=b?-E[P]/2+j+V+z+C.mainAxis:F+V+z+C.mainAxis,W=t.elements.arrow&&Wu(t.elements.arrow),$=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(T=null==k?void 0:k[w])?T:0,X=L+G-Y,Z=Pl(p?Tu(M,L+q-Y-$):M,L,p?Au(R,X):R);x[w]=Z,A[w]=Z-L}if(s){var J,Q="x"===w?$u:Zu,ee="x"===w?Yu:Xu,te=x[S],re="y"===S?"height":"width",ne=te+y[Q],oe=te-y[ee],ie=-1!==[$u,Zu].indexOf(m),ae=null!=(J=null==k?void 0:k[S])?J:0,se=ie?ne:te-E[re]-_[re]-ae+C.altAxis,ce=ie?te+E[re]+_[re]-ae-C.altAxis:oe,ue=p&&ie?function(e,t,r){var n=Pl(e,t,r);return n>r?r:n}(se,te,ce):Pl(p?se:ne,te,p?ce:oe);x[S]=ue,A[S]=ue-te}t.modifiersData[n]=A}},requiresIfExists:["offset"]},Ml={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=pl(r.placement),c=gl(s),u=[Zu,Xu].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return Al("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Tl(e,Qu))}(o.padding,r),d=Ku(i),f="y"===c?$u:Zu,p="y"===c?Yu:Xu,h=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],g=a[c]-r.rects.reference[c],y=Wu(i),m=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,v=h/2-g/2,b=l[f],w=m-d[u]-l[p],S=m/2-d[u]/2+v,x=Pl(b,S,w),E=c;r.modifiersData[n]=((t={})[E]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ol(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rl(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function jl(e){return[$u,Xu,Yu,Zu].some(function(t){return e[t]>=0})}var Nl=ll({defaultModifiers:[fl,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=yl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},bl,{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Cu(o)&&Ru(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});Cu(n)&&Ru(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},wl,Il,Ll,Ml,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Dl(t,{elementContext:"reference"}),s=Dl(t,{altBoundary:!0}),c=Rl(a,n),u=Rl(s,o,i),l=jl(c),d=jl(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),Fl=l(6924),Bl=l.n(Fl),Ul=l(9786),Kl=l.n(Ul);function Hl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function zl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Vl={modifiers:[],placement:"bottom"},ql=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return Kl()(e,t,"name")};function Gl(e,t,r={}){return Nl(e,t,Bl()({},Vl,r,ql))}function Wl(e,t,r,n){const o={bottom:n+e,height:e,left:r,right:r+t,top:n,width:t,x:r,y:n};return zl(zl({},o),{},{toJSON:()=>zl({},o)})}const $l=["children","className","options","reference"];class Yl extends Wo().PureComponent{constructor(...e){super(...e),f(this,"popper",void 0),f(this,"popupRef",Wo().createRef()),f(this,"createPopper",()=>{const{options:e,reference:t}=this.props,{current:r}=this.popupRef;if(r)return Gl(t,r,e)}),f(this,"handleEvent",e=>{e.stopPropagation()})}componentDidMount(){this.popper=this.createPopper()}componentDidUpdate(e){const{options:t,reference:r}=e,{options:n,reference:o}=this.props;this.popper&&(n!==t&&this.popper.setOptions(n),o!==r&&(this.popper.destroy(),this.popper=this.createPopper()))}componentWillUnmount(){this.popper&&this.popper.destroy()}render(){const e=this.props,{children:t,className:r,options:n,reference:o}=e,i=lt(e,$l);return Wo().createElement("div",y({ref:this.popupRef,className:bi()("ba-Popup",r),onClick:this.handleEvent,onMouseDown:this.handleEvent,onMouseMove:this.handleEvent,onMouseUp:this.handleEvent,onTouchMove:this.handleEvent,onTouchStart:this.handleEvent,role:"presentation"},i),Wo().createElement("div",{className:"ba-Popup-arrow"}),Wo().createElement("div",{className:"ba-Popup-content"},t))}}f(Yl,"defaultProps",{options:{}});const Xl=["items","reference"],Zl={modifiers:[{name:"offset",options:{offset:[0,3]}},{name:"eventListeners",options:{scroll:!1}}],placement:"bottom-start"},Jl=e=>{let{items:t,reference:r}=e,n=lt(e,Xl);return Wo().createElement(Yl,{className:"ba-PopupList",options:Zl,reference:r},pu()(t)?Wo().createElement("div",{className:"ba-PopupList-prompt"},Wo().createElement(ri.FormattedMessage,au.popupListPrompt)):Wo().createElement(Eu,y({items:t},n)))},Ql=["className","collaborators","intl","editorState","isDisabled","placeholder"];class ed extends Go.Component{constructor(...e){super(...e),f(this,"state",{activeItemIndex:0,popupAutoScroll:!1,popupReference:null}),f(this,"fetchCollaborators",du()(e=>{const{fetchCollaborators:t}=this.props,r=Ti(e),n=r?.mentionString.trim();n&&t(n)},500)),f(this,"handleResize",du()(()=>this.updatePopupReference(),100)),f(this,"getVirtualElement",e=>{const t=window.getSelection();if(!t?.focusNode)return null;const r=t.getRangeAt(0),n=r.endContainer,o=r.endOffset,{mentionString:i,mentionTrigger:a}=e,s=i.length+a.length,c=Math.max(0,o-s);r.setStart(n,c),r.setEnd(n,c);const u=r.getBoundingClientRect();return r.setStart(n,o),r.setEnd(n,o),{getBoundingClientRect:()=>u}}),f(this,"updatePopupReference",()=>{const{editorState:e}=this.props,t=Ti(e);this.setState({popupReference:t?this.getVirtualElement(t):null})}),f(this,"saveCursorPosition",()=>{const{editorState:e,setCursorPosition:t}=this.props;t(e.getSelection().getFocusOffset())}),f(this,"stopDefaultEvent",e=>{e.preventDefault(),e.stopPropagation()}),f(this,"setPopupListActiveItem",(e,t=!1)=>this.setState({activeItemIndex:e,popupAutoScroll:t})),f(this,"handleChange",e=>{const{onChange:t}=this.props;this.fetchCollaborators(e),t(e)}),f(this,"handleSelect",e=>{const{collaborators:t,editorState:r}=this.props,n=function(e,t,r){const{start:n,end:o}=t||{},{id:i,name:a}=r,s=e.getCurrentContent(),c=e.getSelection().merge({anchorOffset:n,focusOffset:o}),u="@".concat(a),l=s.createEntity("MENTION","IMMUTABLE",{id:i}).getLastCreatedEntityKey(),d=_i.Modifier.replaceText(s,c,u,null,l),f=c.getStartOffset()+u.length,p=c.merge({anchorOffset:f,focusOffset:f}),h=_i.Modifier.insertText(d,p," ");return _i.EditorState.push(e,h,"change-block-type")}(r,Ti(r),t[e]);this.handleChange(n),this.setPopupListActiveItem(0)}),f(this,"handleReturn",e=>{const{activeItemIndex:t,popupReference:r}=this.state;return r?(this.stopDefaultEvent(e),this.handleSelect(t),"handled"):"not-handled"}),f(this,"handleArrow",e=>{const{collaborators:t}=this.props,{popupReference:r}=this.state,{length:n}=t;return r&&n?(this.stopDefaultEvent(e),n):0}),f(this,"handleUpArrow",e=>{const{activeItemIndex:t}=this.state,r=this.handleArrow(e);r&&this.setPopupListActiveItem(0===t?r-1:t-1,!0)}),f(this,"handleDownArrow",e=>{const{activeItemIndex:t}=this.state,r=this.handleArrow(e);r&&this.setPopupListActiveItem(t===r-1?0:t+1,!0)}),f(this,"handleMouseDown",e=>e.preventDefault())}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentDidUpdate({editorState:e}){const{editorState:t}=this.props;e!==t&&this.updatePopupReference()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize),this.saveCursorPosition()}render(){const e=this.props,{className:t,collaborators:r,intl:n,editorState:o,isDisabled:i,placeholder:a}=e,s=lt(e,Ql),{activeItemIndex:c,popupAutoScroll:u,popupReference:l}=this.state;return Go.createElement("div",{className:bi()(t,"ba-ReplyField")},Go.createElement(_i.Editor,y({},s,{ariaLabel:n.formatMessage(au.ariaLabelReplyField),ariaMultiline:!0,editorState:o,handleReturn:this.handleReturn,onChange:this.handleChange,onDownArrow:this.handleDownArrow,onUpArrow:this.handleUpArrow,placeholder:a,readOnly:i,stripPastedStyles:!0,tabIndex:0,webDriverTestID:"ba-ReplyField-editor"})),l&&Go.createElement(Jl,{activeItemIndex:c,autoScroll:u,items:r,onActivate:this.setPopupListActiveItem,onMouseDown:this.handleMouseDown,onSelect:this.handleSelect,reference:l}))}}f(ed,"defaultProps",{isDisabled:!1});const td={fetchCollaborators:Ar,setCursorPosition:$t},rd=(0,Yo.connect)(e=>({collaborators:uu(e),cursorPosition:un(e)}),td)(ed),nd=({contentState:e,entityKey:t,children:r})=>{const{id:n}=e.getEntity(t).getData();return n?Go.createElement("a",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-link",href:`/profile/${n}`},r):Go.createElement("span",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-text"},r)},od=(e,t,r)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===r.getEntity(t).getType()},t)},id=(0,Yo.connect)(e=>({cursorPosition:un(e)}))((ld={handleSubmit:({editorState:e},{props:{onSubmit:t}})=>t(Di(e).text),mapPropsToErrors:()=>({editorState:"initial"}),mapPropsToValues:({cursorPosition:e,value:t=""})=>{const r=function(e){const t=new _i.CompositeDecorator([{strategy:od,component:nd}]);return _i.EditorState.set(e,{decorator:t})}(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=_i.ContentState.createFromText(e),r=t.getFirstBlock();for(;null!=r;){const e=r.getText(),n=e?Ci(e):null;if(null==n)r=t.getBlockAfter(r.getKey());else{const{data:e,start:o,end:i}=n;t.createEntity("MENTION","IMMUTABLE",e);const a=t.getLastCreatedEntityKey(),s=_i.SelectionState.createEmpty(r.getKey()).merge({anchorOffset:o,focusOffset:i});t=_i.Modifier.replaceText(t,s,e.content,null,a),r=t.getBlockForKey(r.getKey())}}return _i.EditorState.createWithContent(t,Oi)}(t)),n=t?e:0;return{editorState:_i.EditorState.forceSelection(r,r.getSelection().merge({anchorOffset:n,focusOffset:n,hasFocus:!0}))}},validate:({editorState:e})=>{const t={};if(e){const{text:r}=Di(e);r&&0!==r.trim().length?r.length>1e4&&(t.editorState="maxlength"):t.editorState="required"}return t},validateOnMount:!0},fd=void 0===(dd=ld.mapPropsToValues)?function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&"function"!=typeof e[r]&&(t[r]=e[r]);return t}:dd,pd=Lc(ld,["mapPropsToValues"]),function(e){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",r=function(t){function r(){for(var r,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=t.call.apply(t,[this].concat(o))||this).validate=function(e){return pd.validate(e,r.props)},r.validationSchema=function(){return Fc(pd.validationSchema)?pd.validationSchema(r.props):pd.validationSchema},r.handleSubmit=function(e,t){return pd.handleSubmit(e,Ic({},t,{props:r.props}))},r.renderFormComponent=function(t){return(0,Go.createElement)(e,Ic({},r.props,t))},r}return Pc(r,t),r.prototype.render=function(){var e=Lc(this.props,["children"]);return(0,Go.createElement)(Xc,Ic({},e,pd,{validate:pd.validate&&this.validate,validationSchema:pd.validationSchema&&this.validationSchema,initialValues:fd(this.props),initialStatus:pd.mapPropsToStatus&&pd.mapPropsToStatus(this.props),initialErrors:pd.mapPropsToErrors&&pd.mapPropsToErrors(this.props),initialTouched:pd.mapPropsToTouched&&pd.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},r}(Go.Component);return r.displayName="WithFormik("+t+")",Dc()(r,e)})(e=>{const{errors:t,isPending:r,onCancel:n,onChange:o,setFieldValue:i,values:a}=e,s=Wo().useRef(null),c=(0,ri.useIntl)(),u=Object.keys(t).length>0,{editorState:l}=a,d=()=>{n(Di(l).text)},f=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),d())};return Wo().useEffect(()=>{const{current:e}=s;return e&&e.addEventListener("keydown",f),()=>{e&&e.removeEventListener("keydown",f)}},[s]),Wo().createElement(tu,{ref:s,className:"ba-ReplyForm","data-testid":"ba-ReplyForm"},Wo().createElement("div",{className:"ba-Popup-main"},Wo().createElement(rd,{className:"ba-Popup-field","data-testid":"ba-Popup-field",editorState:l,intl:c,isDisabled:r,onChange:e=>{o(Di(e).text),i("editorState",e)},placeholder:c.formatMessage(au.fieldPlaceholder)})),Wo().createElement("div",{className:"ba-Popup-footer"},Wo().createElement(cu,{"data-resin-target":"cancel","data-testid":"ba-Popup-cancel",isDisabled:r,onClick:d,type:"button"},Wo().createElement(ri.FormattedMessage,au.buttonCancel)),Wo().createElement(cu,{"data-resin-target":"post","data-testid":"ba-Popup-submit",isDisabled:u||r,isPrimary:!0,type:"submit"},Wo().createElement(ri.FormattedMessage,au.buttonPost))))})),ad=id,sd=["isPending","onCancel","onChange","onSubmit","value"],cd=()=>{const{userAgent:e}=navigator;return e.indexOf("Trident/")>0},ud={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow",padding:10}},{name:"flip",options:{altAxis:!1,fallbackPlacements:["bottom","top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}]};var ld,dd,fd,pd;function hd(e){const t=(0,ri.useIntl)(),r=Wo().useRef(null),n=Wo().useRef((()=>{const{modifiers:e}=ud,t=cd()?"top":"bottom";return{modifiers:cd()?[...e,{name:"eventListeners",options:{scroll:!1}}]:e,placement:t}})()),o=(0,Yo.useSelector)(Ve),i=(0,Yo.useSelector)(qe);Wo().useEffect(()=>{const{current:e}=r;e?.popper&&e.popper.update()},[r,o,i]);const{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l=""}=e,d=lt(e,sd);return Wo().createElement(Ei,null,Wo().createElement(Yl,y({ref:r,"aria-label":t.formatMessage(au.ariaLabelComment),"data-resin-component":"popupReply",options:n.current,role:"dialog"},d),Wo().createElement(ad,{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l})))}function gd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}const yd=/@\[(\d+):([^\]]+)\]/g,md=(e,t=!1)=>t?i(e):(e=>{if(!e)return{type:"doc",content:[]};const t=e.split("\n").map(e=>{const t=(e=>{const t=[];let r=0;yd.lastIndex=0;let n=yd.exec(e);for(;null!==n;){const[o,i,a]=n,{index:s}=n;s>r&&t.push({type:"text",text:e.slice(r,s)}),t.push({type:"mention",attrs:{authorId:"",mentionId:i,mentionedUserId:i,mentionedUserName:a}}),r=s+o.length,n=yd.exec(e)}return r<e.length&&t.push({type:"text",text:e.slice(r)}),t})(e);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:"paragraph"},t.length>0?{content:t}:{})});return{type:"doc",content:t}})(e),vd=(e,t)=>{if(!t)return;const r=new Date(t).getTime();return Number.isNaN(r)?void 0:r!==new Date(e).getTime()?r:void 0},bd=(e,t=!1)=>{const r=[];return e.description&&r.push(((e,t=!1)=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:md(e.description?.message??"",t),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:e.permissions?.can_edit??!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1},updatedAt:vd(e.created_at,e.modified_at)}))(e,t)),e.replies&&e.replies.forEach(e=>{r.push(((e,t=!1)=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:md(e.message,t),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:e.permissions?.can_edit??!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1},updatedAt:vd(e.created_at,e.modified_at)}))(e,t))}),r},wd=e=>{const t=e.item;return{email:t?.email??t?.login??"",id:parseInt(t?.id??e.id,10),name:t?.name??e.name,value:e.id}},Sd=(0,Go.createContext)({});function xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const _d=e=>e?"doc"===e.type&&e.content?e:{type:"doc",content:[e]}:{type:"doc",content:[]},Od=(e,t)=>t?s(e):a(e).text,Cd=({annotationId:i,onSubmit:a,popupPortalEl:s,reference:c})=>{const u=(0,ri.useIntl)(),l=(0,Yo.useDispatch)(),{onCopyLink:d}=Wo().useContext(Sd),f=Wo().useRef(null),p=Wo().useRef(),h=Wo().useRef({modifiers:[{name:"flip",options:{altAxis:!1,fallbackPlacements:["top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"}),g=(0,Yo.useSelector)(Fe),y=(0,Yo.useSelector)(Ue),m=(0,Yo.useSelector)(Ke),v=(0,Yo.useSelector)(e=>We(e,"isRichTextEnabled")),b=(0,Yo.useSelector)(Ge),w=Wo().useMemo(()=>d&&i&&m?()=>d({annotationId:i,fileVersionId:m}):void 0,[d,i,m]),S=(0,Yo.useSelector)(e=>i?Me(e,i):void 0),[x,E]=Wo().useState({}),_=Wo().useRef(new Map),O=Wo().useRef({apiHost:g,token:b});O.current={apiHost:g,token:b};const C=Wo().useCallback(async e=>{const t=_.current.get(e);if(t)return t;const r=g,n=b,o=await(async(e,t,r,n)=>{try{if(!r)return null;const o=await(async(e,t)=>{const r="function"==typeof e?await e(t):e;return r?"string"==typeof r?r:(n=t in r?r[t]:r)?"string"==typeof n?n:n.read??n.write??null:null:null;var n})(t,`file_${r}`);if(!o)return null;const i=await fetch(`${e}/2.0/users/${n}/avatar?pic_type=large`,{headers:{Authorization:`Bearer ${o}`}});if(!i.ok)return null;const a=await i.blob();return URL.createObjectURL(a)}catch{return null}})(r,n,y,e);if(!o)return null;if(O.current.apiHost!==r||O.current.token!==n)return URL.revokeObjectURL(o),null;const i=_.current.get(e);return i?(URL.revokeObjectURL(o),i):(_.current.set(e,o),o)},[g,y,b]);Wo().useEffect(()=>(f.current&&(p.current=Gl(c,f.current,h.current)),()=>{p.current?.destroy()}),[c]),Wo().useEffect(()=>{const e=_.current;return()=>{e.forEach(e=>URL.revokeObjectURL(e)),e.clear()}},[]),Wo().useEffect(()=>{_.current.forEach(e=>URL.revokeObjectURL(e)),_.current.clear(),E({})},[g,b]);const k=Wo().useCallback(e=>{e.stopPropagation()},[]);Wo().useEffect(()=>{if(!S)return;const e=Array.from(new Set(bd(S,v).map(e=>String(e.author.id))));let t=!1;return Promise.all(e.map(async e=>[e,await C(e)])).then(e=>{t||E(t=>{const r=Ed({},t);return e.forEach(([e,t])=>{t&&(r[e]=t)}),r})}),()=>{t=!0}},[S,C,v]);const A=Wo().useMemo(()=>S?bd(S,v).map(e=>Ed(Ed({},e),{},{author:Ed(Ed({},e.author),{},{avatarUrl:x[String(e.author.id)]})})):[],[S,x,v]),T="resolved"===S?.status,D=T?S?.resolution?.resolved_by?.name??S?.modified_by?.name:void 0,I=T?S?.resolution?.resolved_at??S?.modified_at:void 0,P=I?new Date(I).getTime():void 0,L=Wo().useMemo(()=>({allowEmptyQuery:!0,ariaRoleDescription:u.formatMessage(au.ariaLabelMentionSelector),fetchAvatarUrls:async e=>{const t={};return await Promise.all(e.map(async({id:e})=>{const r=String(e),n=await C(r);n&&(t[r]=n)})),t},fetchUsers:async e=>{const t=await l(Ar(e));return Ar.fulfilled.match(t)?t.payload.entries.map(wd):[]},loadingAriaLabel:u.formatMessage(au.ariaLabelMentionLoading)}),[l,C,u]),M=Wo().useCallback(async e=>{const t=_d(e),r=Od(t,v);i?await l(Je({annotationId:i,message:r})):a(r)},[i,l,v,a]),R=Wo().useCallback(async(e,t)=>{if(!i)return;const r=_d(t),n=Od(r,v);e!==i?await l(tt({annotationId:i,replyId:e,payload:{message:n}})):await l(et({annotationId:i,payload:{message:n}}))},[i,l,v]),j=Wo().useCallback(async()=>{i&&await l(Qe(i))},[i,l]),N=Wo().useCallback(async e=>{i&&e!==i&&await l(rt({annotationId:i,replyId:e}))},[i,l]),F=Wo().useCallback(async()=>{if(!i)return;const e=await l(et({annotationId:i,payload:{status:"resolved"}}));et.fulfilled.match(e)&&l(ct(null))},[i,l]),B=Wo().useCallback(async()=>{i&&await l(et({annotationId:i,payload:{status:"open"}}))},[i,l]);return s?gi().createPortal(Wo().createElement(Ei,null,Wo().createElement("div",{ref:f,"aria-label":u.formatMessage(au.ariaLabelComment),className:"ba-PopupAnnotation","data-resin-component":i?"popupThreadV2":"popupReplyV2","data-resin-feature":"annotations",onMouseDown:k,onMouseMove:k,onTouchMove:k,onTouchStart:k,role:"presentation"},Wo().createElement(e,{enableModernizedComponents:!0},Wo().createElement(t,null,Wo().createElement(r,{value:{collaborationPopoverProps:{onSubmit:()=>Promise.resolve()},fetchCollaboratorState:async()=>!0}},i?Wo().createElement(o,{isAnnotations:!0,isResolved:T,isRichTextEnabled:v,messages:A,onAvatarClick:Ir(),onCopyLink:w,onDelete:N,onEdit:R,onPost:M,onResolve:F,onThreadDelete:j,onUnresolve:B,resolvedAt:P,resolvedBy:D,userSelectorProps:L}):Wo().createElement(n,{isFirstAnnotation:!0,isRichTextEnabled:v,onPost:M,userSelectorProps:L})))),Wo().createElement("div",{"data-threaded-annotations-portal":!0}))),s):null};function kd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ad(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Td={[g.DRAWING]:gn,[g.HIGHLIGHT]:yn,[g.REGION]:mn},Dd=["callbacks","intl","store"];function Id(e){return function(t){let{callbacks:r,intl:n,store:o}=t,i=lt(t,Dd);return Go.createElement(ri.RawIntlProvider,{value:n},Go.createElement(Yo.Provider,{store:o},Go.createElement(Sd.Provider,{value:r??{}},Go.createElement(e,i))))}}const Pd=e=>e.highlight.isPromoting,Ld=e=>e.highlight.isSelecting,Md=(e,t)=>{const r=(e=>e.highlight.selection)(e);return r&&r.location===t?r:null},Rd={createDrawing:e=>(t,r)=>{const{location:n,message:o,pathGroups:i,targetType:a}=e,s=r(),c={description:{message:o,type:"reply"},file_version:{id:Ke(s)},target:{location:{type:a,value:n},path_groups:i,type:"drawing"}};return t(Xe(c))},createHighlight:e=>(t,r)=>{const{location:n,message:o,shapes:i}=e,a=r(),s={description:{message:o,type:"reply"},file_version:{id:Ke(a)},target:{location:{type:Pe.PAGE,value:n},shapes:i,type:"highlight"}};return t(Xe(s))},createRegion:e=>(t,r)=>{const{location:n,message:o,shape:i,targetType:a}=e,s=r(),c={description:{message:o,type:"reply"},file_version:{id:Ke(s)},target:{location:{type:a,value:n},shape:i,type:"region"}};return t(Xe(c))},resetCreator:Wt,setMessage:Yt},jd=(0,Yo.connect)((e,{location:t})=>({activeAnnotationId:Le(e),isPromoting:Pd(e),isThreadedAnnotation:We(e,"isThreadedAnnotation"),message:ln(e),mode:bn(e),referenceId:dn(e),staged:pn(e,t),status:hn(e)}),Rd)(Id(e=>{const{activeAnnotationId:t,createDrawing:r=Ir(),createHighlight:n=Ir(),createRegion:o=Ir(),isPromoting:i=!1,isThreadedAnnotation:a=!1,message:s,mode:c,popupPortalEl:u,referenceId:l,resetCreator:d,setMessage:f,staged:p,status:h,targetType:g}=e,[y,m]=Go.useState(null),[v,b]=Go.useState(null),w=(Td[c]?.(p??null)??!1)||i,S=h!==Gt.started&&h!==Gt.init,x=h===Gt.pending,E=e=>{if(!p)return;const t=e??s;yn(p)?n(Ad(Ad({},p),{},{message:t,targetType:g})):mn(p)?o(Ad(Ad({},p),{},{message:t,targetType:g})):gn(p)&&r(Ad(Ad({},p),{},{message:t,targetType:g}))};Go.useEffect(()=>{m(l?document.querySelector(`[data-ba-reference-id="${l}"]`):null)},[l]),Go.useEffect(()=>{if(!t||!a)return b(null),Ir();const e=`[data-ba-annotation-id="${CSS.escape(t)}"]`,r=document.querySelector(e);if(r)return b(r),Ir();b(null);const n=new MutationObserver(()=>{const t=document.querySelector(e);t&&(b(t),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0});const o=window.setTimeout(()=>{n.disconnect()},1e4);return()=>{n.disconnect(),window.clearTimeout(o)}},[t,a]);const _=w&&S&&y&&p;return _&&a?Go.createElement("div",{className:"ba-PopupLayer-popup"},Go.createElement(Cd,{onSubmit:E,popupPortalEl:u,reference:y})):_?u?hi.createPortal(Go.createElement("div",{className:"ba-PopupLayer-popup"},Go.createElement(hd,{isPending:x,onCancel:()=>{d()},onChange:(e="")=>{f(e)},onSubmit:E,reference:y,value:s})),u):null:a&&t&&v?Go.createElement("div",{className:"ba-PopupLayer-popup"},Go.createElement(Cd,{annotationId:t,onSubmit:E,popupPortalEl:u,reference:v})):null})),Nd=["popupPortalEl"];class Fd extends Jo{constructor(e){let{popupPortalEl:t}=e;super(lt(e,Nd)),f(this,"popupPortalEl",void 0),this.popupPortalEl=t}decorate(){this.reactEl.classList.add("ba-Layer--popup"),this.reactEl.dataset.testid="ba-Layer--popup"}render({callbacks:e,intl:t,store:r}){this.root||(this.root=$o.createRoot(this.reactEl)),this.root.render(Go.createElement(jd,{callbacks:e,intl:t,location:this.location,popupPortalEl:this.popupPortalEl,store:r,targetType:this.targetType}))}}const Bd=function(e){return Go.createElement("svg",y({"data-testid":"ChevronLeft",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),Go.createElement("path",{d:"M13.293 4.293a1 1 0 1 1 1.414 1.414L8.414 12l6.293 6.293.068.076a1 1 0 0 1-1.406 1.406l-.076-.068L7 13.414a2 2 0 0 1 0-2.828l6.293-6.293Z",fill:"currentColor"}))},Ud=function(e){return Go.createElement("svg",y({"data-testid":"ChevronRight",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),Go.createElement("path",{d:"M9.293 4.293a1 1 0 0 1 1.414 0L17 10.586a2 2 0 0 1 0 2.828l-6.293 6.293a1 1 0 0 1-1.414-1.414L15.586 12 9.293 5.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"}))},Kd=(0,ri.defineMessages)({ariaLabelViewNextReference:{id:"ba.boundingBoxHighlight.viewNextReference",defaultMessage:"View next reference"},ariaLabelViewPrevReference:{id:"ba.boundingBoxHighlight.viewPrevReference",defaultMessage:"View previous reference"}}),Hd=({currentIndex:e,total:t,onPrev:r,onNext:n})=>{const o=(0,ri.useIntl)(),i=0===e,a=e===t-1;return Go.useEffect(()=>{const e=e=>{"ArrowLeft"===e.key?(e.stopPropagation(),i||r(e)):"ArrowRight"===e.key&&(e.stopPropagation(),a||n(e))};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})},[i,a,r,n]),Go.createElement("div",{className:"ba-BoundingBoxHighlightNav","data-testid":"ba-BoundingBoxHighlightNav"},Go.createElement("button",{"aria-label":o.formatMessage(Kd.ariaLabelViewPrevReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-prev",disabled:i,onClick:r,type:"button"},Go.createElement(Bd,{width:20,height:20})),Go.createElement("span",{className:"ba-BoundingBoxHighlightNav-counter"},e+1," / ",t),Go.createElement("button",{"aria-label":o.formatMessage(Kd.ariaLabelViewNextReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-next",disabled:a,onClick:n,type:"button"},Go.createElement(Ud,{width:20,height:20})))},zd=({boundingBox:e,currentIndex:t,isSelected:r,onNavigate:n,onSelect:o,total:i,prevId:a,nextId:s})=>{const{id:c,x:u,y:l,width:d,height:f}=e,p={display:"block",left:`${u}%`,top:`${l}%`,width:`${d}%`,height:`${f}%`};return Go.createElement("div",{className:bi()("ba-BoundingBoxHighlightRect",{"is-selected":r}),"data-testid":`ba-BoundingBoxHighlightRect-${c}`,onClick:e=>{e.stopPropagation(),o?.(c)},role:"presentation",style:p},r&&i>1&&Go.createElement(Hd,{currentIndex:t,onNext:e=>{e.stopPropagation(),s&&n?.(s)},onPrev:e=>{e.stopPropagation(),a&&n?.(a)},total:i}))},Vd=({allBoundingBoxes:e,boundingBoxes:t,onNavigate:r,onSelect:n,selectedId:o})=>{const i=e.length;if(0===i)return null;const a=e.findIndex(e=>e.id===o),s=a>0?e[a-1].id:void 0,c=a<i-1?e[a+1].id:void 0;return Go.createElement("div",{className:"ba-BoundingBoxHighlightList","data-testid":"ba-BoundingBoxHighlightList"},t.map(e=>Go.createElement(zd,{key:e.id,boundingBox:e,currentIndex:a,isSelected:o===e.id,nextId:c,onNavigate:r,onSelect:n,prevId:s,total:i})))},qd=Go.memo(Vd),Gd={onNavigate:Or,onSelect:_r},Wd=(0,Yo.connect)((e,{location:t})=>({allBoundingBoxes:Fr(e),boundingBoxes:Br(e,t),selectedId:Ur(e)}),Gd)(Id(qd));class $d extends Jo{decorate(){this.reactEl.classList.add("ba-Layer--boundingBoxHighlight"),this.reactEl.dataset.testid="ba-Layer--boundingBoxHighlight"}render(e){this.root||(this.root=$o.createRoot(this.reactEl)),this.root.render(Go.createElement(Wd,y({location:this.location},e)))}}const Yd=["pathCommands"],Xd=(e,t)=>{const{pathCommands:r}=e,n=lt(e,Yd);return Wo().createElement("path",y({ref:t,d:r,strokeLinecap:"round",vectorEffect:"non-scaling-stroke"},n))},Zd=Wo().forwardRef(Xd),Jd=(0,Go.createContext)("");function Qd({borderStrokeWidth:e=0,isDecorated:t=!1,points:r=[]}){const n=Wo().useContext(Jd),o=kt(r);return Wo().createElement("g",{className:"ba-DecoratedDrawingPath"},t&&Wo().createElement("g",{className:"ba-DecoratedDrawingPath-decoration"},Wo().createElement(Zd,{className:"ba-DecoratedDrawingPath-shadow",filter:`url(#${n})`,pathCommands:o}),Wo().createElement(Zd,{className:"ba-DecoratedDrawingPath-border",fill:"none",pathCommands:o,stroke:Ut,strokeWidth:e})),Wo().createElement(Zd,{pathCommands:o}))}const ef=["className","children"];function tf(e,t){let{className:r,children:n}=e,o=lt(e,ef);const{current:i}=Wo().useRef(`ba-DrawingSVG-shadow_${vt()}`);return Wo().createElement("svg",y({ref:t,className:bi()("ba-DrawingSVG",r),preserveAspectRatio:"none",viewBox:"0 0 100 100"},o),Wo().createElement("defs",null,Wo().createElement("filter",{filterUnits:"userSpaceOnUse",id:i},Wo().createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"1"}))),Wo().createElement(Jd.Provider,{value:i},n))}const rf=Wo().forwardRef(tf),nf=({children:e,isActive:t=!1,rootEl:r,stroke:{color:n,size:o}})=>{let i=o,a=i+2;if(!("vector-effect"in document.body.style)){if(!r)return Go.createElement("g",{className:"ba-DrawingPathGroup"});const{clientWidth:e}=r,t=e/100;i/=t,a/=t}return Go.createElement("g",{className:bi()("ba-DrawingPathGroup",{"is-active":t}),fill:"transparent",stroke:n,strokeWidth:i},"function"==typeof e?e(a):e)},of=(e,t)=>{const{annotationId:r,className:n,isActive:o=!1,onSelect:i=Ir(),rootEl:a,target:{path_groups:s}}=e,c=At(s),{x:u,y:l}=Ct(c),d=()=>{i(r)};return Go.createElement("a",{ref:t,className:bi()("ba-DrawingTarget",n,{"is-active":o}),"data-ba-annotation-id":r,"data-resin-itemid":r,"data-resin-target":"highlightDrawing","data-testid":`ba-AnnotationTarget-${r}`,href:"#",onFocus:d,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():d()},role:"button",tabIndex:0},Go.createElement("rect",y({fill:"transparent",transform:`translate(-${.1*u}, -${.1*l}) scale(1.1)`},c)),s.map(({clientId:e,paths:t,stroke:r})=>Go.createElement(nf,{key:e,isActive:o,rootEl:a,stroke:r},e=>t.map(({clientId:t,points:r})=>Go.createElement(Qd,{key:t,borderStrokeWidth:e,isDecorated:!0,points:r})))))},af=Go.forwardRef(of);function sf(){const e=Yo.useSelector(hn),t=Yo.useSelector(Ld);return e===Gt.init&&!t}function cf(e){return e>=0&&e<=100}function uf({target:{path_groups:e}}){return e.every(({paths:e})=>e.every(({points:e})=>e.every(({x:e,y:t})=>cf(e)&&cf(t))))}function lf({target:e},{target:t}){const{height:r,width:n}=At(e.path_groups),{height:o,width:i}=At(t.path_groups);return o*i-r*n}function df({activeId:e=null,annotations:t,className:r,onSelect:n=Ir()}){const[o,i]=Wo().useState(null),a=sf();return Wo().createElement(rf,{ref:i,className:bi()(r,{"is-listening":a}),"data-resin-component":"drawingList"},t.filter(uf).sort(lf).map(({id:t,target:r})=>Wo().createElement(af,{key:t,annotationId:t,isActive:e===t,onSelect:n,rootEl:o,target:r})))}const ff=Wo().memo(df),pf=["children","className","onDrawStart","onDrawStop","onDrawUpdate","onMouseOut","onMouseOver","status"];let hf=function(e){return e.dragging="dragging",e.drawing="drawing",e.init="init",e}({});function gf(e,t){const{children:r,className:n,onDrawStart:o,onDrawStop:i,onDrawUpdate:a,onMouseOut:s=Ir(),onMouseOver:c=Ir(),status:u}=e,l=lt(e,pf);return Wo().useEffect(()=>{const e=({buttons:e,clientX:t,clientY:r})=>{1===e&&u!==hf.init&&a(t,r)},t=()=>{i()};return u!==hf.init&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[i,a,u]),Wo().createElement("div",y({ref:t,className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDown:({buttons:e,clientX:t,clientY:r})=>{1===e&&o(t,r)},onMouseOut:()=>{s()},onMouseOver:()=>{c()},onTouchCancel:()=>{i()},onTouchEnd:()=>{i()},onTouchMove:({targetTouches:e})=>{a(e[0].clientX,e[0].clientY)},onTouchStart:({targetTouches:e})=>{o(e[0].clientX,e[0].clientY)},role:"presentation"},l),r)}const yf=Wo().forwardRef(gf),mf=Kt;function vf({className:e,color:t=mf,onStart:r,onStop:n,rotation:o=0,size:i=4}){const[a,s]=Wo().useState(hf.init),c=Wo().useRef([]),u=Wo().useRef(null),l=Wo().useRef(!1),d=Wo().useRef(null),f=Wo().useRef(null),p=Wo().useRef(null),h=Wo().useMemo(()=>({color:t,size:i}),[t,i]),g=Wo().useCallback(()=>{const{current:e}=u,{current:t}=c;if(!e||!t.length)return[];const r=e.offsetWidth,n=e.offsetHeight,{size:o}=h,i=r-o,a=n-o;return t.map(({x:e,y:t})=>({x:Math.min(i,Math.max(o,e))/r*100,y:Math.min(a,Math.max(o,t))/n*100}))},[h]),y=Wo().useCallback(()=>{const e=g();!e||e.length<=1||(s(hf.init),c.current=[],l.current=!0,n({paths:[{points:e}],stroke:h}))},[g,n,s,h]),m=Wo().useCallback((e,t)=>{const[n,i]=mr(e,t,u.current,o),{current:d}=c;d.push({x:n,y:i}),l.current=!0,a!==hf.drawing&&(s(hf.drawing),r())},[a,r,o,s]),v=e=>{p.current=window.requestAnimationFrame(e)},b=()=>{const{current:e}=l,{current:t}=d;e&&t&&(t.setAttribute("d",kt(g())),l.current=!1),v(b)};return Wo().useEffect(()=>(a!==hf.init&&v(b),()=>{const{current:e}=p;e&&window.cancelAnimationFrame(e)}),[a]),Wo().useEffect(()=>{const{current:e}=u;e&&(e.style.cursor="crosshair",e.style.cursor=(e=>`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'>\n <defs>\n <path id='ba-DrawingCursor-b' d='M23.0868949,12.6610542 L21.7362465,14.0116939 C21.5985448,14.1493947 21.3758783,14.1493947 21.2381766,14.0116939 L17.9860729,10.7596114 C17.8483713,10.6219106 17.8483713,10.3992455 17.9860729,10.2615447 L19.3367214,8.91090502 C19.8845983,8.36303166 20.7752645,8.36303166 21.3260713,8.91090502 L23.0868949,10.6717173 C23.6377017,11.2195906 23.6377017,12.1102511 23.0868949,12.6610542 Z M16.825863,11.4217471 L9.13214756,19.1154126 L8.51102507,22.6751246 C8.4260602,23.1556124 8.8450249,23.5716446 9.32551588,23.4896101 L12.8852509,22.8655618 L20.5789664,15.1718963 C20.7166681,15.0341955 20.7166681,14.8115304 20.5789664,14.6738296 L17.3268627,11.4217471 C17.1862312,11.2840463 16.9635647,11.2840463 16.825863,11.4217471 Z M12.1352162,18.4562067 C11.974076,18.2950675 11.974076,18.0372447 12.1352162,17.8761055 L16.6471438,13.3642072 C16.8082841,13.203068 17.0661085,13.203068 17.2272488,13.3642072 C17.388389,13.5253464 17.388389,13.7831692 17.2272488,13.9443084 L12.7153212,18.4562067 C12.5541809,18.6173459 12.2963565,18.6173459 12.1352162,18.4562067 L12.1352162,18.4562067 Z M11.0775501,20.9201719 L12.4838652,20.9201719 L12.4838652,21.9836908 L10.5941293,22.3147587 L9.6829543,21.4035896 L10.0140243,19.513866 L11.0775501,19.513866 L11.0775501,20.9201719 Z'/>\n <filter id='ba-DrawingCursor-a' width='196.7%' height='196.7%' x='-48.3%' y='-41.7%' filterUnits='objectBoundingBox'>\n <feMorphology in='SourceAlpha' operator='dilate' radius='.75' result='shadowSpreadOuter1'/>\n <feOffset dy='1' in='shadowSpreadOuter1' result='shadowOffsetOuter1'/>\n <feGaussianBlur in='shadowOffsetOuter1' result='shadowBlurOuter1' stdDeviation='2'/>\n <feComposite in='shadowBlurOuter1' in2='SourceAlpha' operator='out' result='shadowBlurOuter1'/>\n <feColorMatrix in='shadowBlurOuter1' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24647618 0'/>\n </filter>\n </defs>\n <g fill='none' stroke-linejoin='round'>\n <use fill='#000' filter='url(#ba-DrawingCursor-a)' xlink:href='#ba-DrawingCursor-b'/>\n <path fill='${e}' fill-rule='evenodd' stroke='#FFF' stroke-width='.75' d='M16.8075762,10.9097054 L21.119532,14.6460363 L13.0730631,23.2133559 L9.38862666,23.8592613 C9.02061417,23.9220923 8.67630709,23.7937251 8.44046,23.5578795 C8.23387707,23.3512979 8.11025348,23.0623685 8.12610763,22.7471873 L8.14160649,22.6106659 L8.78311611,18.9341134 L16.8075762,10.9097054 Z M10.3290377,19.888866 L10.0859707,21.276275 L10.7214427,21.9117429 L12.1088652,21.6686767 L12.1088652,21.2951719 L10.7025501,21.2951719 L10.3290377,19.888866 Z M16.912308,13.6293731 L12.4003804,18.1412714 L12.3922785,18.1528739 L12.3922785,18.1528739 L12.389361,18.1661561 C12.389361,18.1753081 12.3934679,18.1841284 12.4003804,18.1910408 C12.4072938,18.1979542 12.4161155,18.2020611 12.4252687,18.2020611 C12.4344219,18.2020611 12.4432436,18.1979542 12.450157,18.1910408 L12.450157,18.1910408 L16.9620846,13.6791425 L16.9701864,13.66754 L16.9701864,13.66754 L16.973104,13.6542578 C16.973104,13.6384287 16.9537538,13.6286304 16.912308,13.6293731 L16.912308,13.6293731 Z M20.3302976,8.125 C20.7859086,8.125 21.2419828,8.29834457 21.5912354,8.64573912 L21.5912354,8.64573912 L23.3513511,10.4058452 C23.7004504,10.7530854 23.875,11.2089541 23.875,11.6652871 C23.875,12.1211084 23.7008005,12.577481 23.3520591,12.9262201 L23.3520591,12.9262201 L21.7544376,14.5238313 L17.4797801,10.8169258 L19.0500461,8.66761683 C19.3996549,8.30599451 19.8646885,8.125 20.3302976,8.125 Z'/>\n </g>\n </svg>`)}") 6 22, crosshair`)(t))},[t,u]),Wo().createElement(yf,{ref:u,className:bi()(e,"ba-DrawingCreator"),"data-testid":"ba-DrawingCreator",onDrawStart:(e,t)=>{const[r,n]=mr(e,t,u.current,o);s(hf.dragging),c.current=[{x:r,y:n}],l.current=!0},onDrawStop:y,onDrawUpdate:m,status:a},a!==hf.init&&Wo().createElement(rf,{ref:f,className:"ba-DrawingCreator-current"},Wo().createElement(nf,{rootEl:f.current,stroke:h},Wo().createElement(Zd,{ref:d}))))}function bf(e){const t=Wo().useRef(vt());return Wo().useEffect(()=>{e(t.current)},[e]),t.current}const wf=["children","onMount"];function Sf(e,t){const{children:r,onMount:n=Ir()}=e,o=lt(e,wf),i=bf(n);return Wo().createElement("g",y({ref:t,"data-ba-reference-id":i},o),r)}const xf=Wo().forwardRef(Sf);var Ef=l(179),_f=l.n(Ef),Of=l(7200),Cf=l.n(Of);class kf extends Go.Component{constructor(){var e,t,r;super(...arguments),e=this,t="id",r=Cf()("icon"),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}render(){const e=this.props,{children:t,title:r}=e,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","title"]),o="".concat(this.id,"-title"),i=_f()(n,["role","aria-labelledby"]);return i.focusable="false",r?(i["aria-labelledby"]=o,i.role="img"):(i["aria-hidden"]="true",i.role="presentation"),Go.createElement("svg",i,r?Go.createElement("title",{id:o},r):null,t)}}const Af=kf;function Tf(){return Tf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf.apply(this,arguments)}const Df=e=>Go.createElement(Af,Tf({width:16,height:16,viewBox:"0 0 16 16"},e),Go.createElement("path",{fill:Ht,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zm1.313 2.743c.162 0 .301.054.417.178l2.057 2.088a.685.685 0 01.21.487c0 .178-.078.34-.21.472l-2.064 2.11a.59.59 0 01-1.005-.433c0-.146.053-.309.177-.41l.92-.858.449-.324-.828.038H7.147c-1.09 0-1.902.78-1.902 1.909 0 1.16.908 1.8 2.022 1.8h1.082c.372 0 .647.217.647.604 0 .386-.268.596-.654.596H7.267C5.442 12 4 10.856 4 9s1.33-3.084 3.147-3.084h2.29l.827.039-.58-.449-.781-.75a.543.543 0 01-.186-.418.59.59 0 01.596-.595z"}));function If(){return If=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},If.apply(this,arguments)}const Pf=e=>Go.createElement(Af,If({width:16,height:16,viewBox:"0 0 16 16"},e),Go.createElement("path",{fill:"#222",fillRule:"evenodd",d:"M14 2l-1.8 11c-.1.6-.7 1-1.2 1H5c-.6 0-1.1-.5-1.2-1L2 2h12zm-1.2 1H3.2l1.6 9.9s.1.1.2.1h6c.06 0 .12-.036.158-.065l.042-.035L12.8 3zm-2.3 1c.3 0 .5.2.5.5s-.2.5-.5.5h-5c-.3 0-.5-.2-.5-.5s.2-.5.5-.5z"}));function Lf(){return Lf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lf.apply(this,arguments)}const Mf=e=>Go.createElement(Af,Lf({width:16,height:16,viewBox:"0 0 16 16"},e),Go.createElement("path",{fill:Ht,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zM6.683 3.743a.59.59 0 01.596.595c0 .17-.07.317-.186.418l-.78.75-.58.449.827-.04h2.289c1.817 0 3.147 1.229 3.147 3.085 0 1.856-1.442 3-3.267 3H7.654C7.268 12 7 11.79 7 11.404c0-.387.276-.604.647-.604h1.082c1.114 0 2.022-.64 2.022-1.8 0-1.129-.812-1.909-1.902-1.909h-2.29l-.827-.038.449.324.92.859c.124.1.178.263.178.41a.59.59 0 01-1.005.433L4.209 6.968A.664.664 0 014 6.496c0-.186.077-.356.209-.487L6.266 3.92a.545.545 0 01.417-.178z"})),Rf=function(e){return Go.createElement("svg",y({"data-testid":"ArrowBack",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),Go.createElement("path",{d:"M6.91086 1.91058C7.2363 1.58515 7.76381 1.58515 8.08925 1.91058C8.41462 2.23602 8.41462 2.76355 8.08925 3.08896L5.34511 5.8331H12.5C14.1062 5.83312 15.3897 6.4396 16.2574 7.47291C17.1089 8.4871 17.5 9.83869 17.5 11.2498C17.5 12.6609 17.109 14.0125 16.2574 15.0266C15.3897 16.0599 14.1062 16.6664 12.5 16.6664H10C9.53987 16.6664 9.16679 16.2933 9.16671 15.8331C9.16671 15.3729 9.53979 14.9998 10 14.9998H12.5C13.6552 14.9998 14.4553 14.5803 14.9805 13.9549C15.5219 13.3102 15.8334 12.3699 15.8334 11.2498C15.8334 10.1296 15.5219 9.18935 14.9805 8.54469C14.4553 7.91928 13.6552 7.49979 12.5 7.49977H5.34511L8.08925 10.2439C8.41462 10.5694 8.41471 11.0969 8.08925 11.4223C7.76384 11.7477 7.23631 11.7477 6.91086 11.4223L2.7442 7.25563C2.41876 6.9302 2.41876 6.40268 2.7442 6.07725L6.91086 1.91058Z",fill:"#fff"}))},jf=function(e){return Go.createElement("svg",y({"data-testid":"ArrowForward",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),Go.createElement("path",{d:"M11.9108 1.91058C12.2363 1.58515 12.7638 1.58515 13.0892 1.91058L17.2558 6.07725C17.5813 6.40268 17.5813 6.9302 17.2558 7.25563L13.0892 11.4223C12.7638 11.7477 12.2363 11.7477 11.9108 11.4223C11.5854 11.0969 11.5854 10.5694 11.9108 10.2439L14.6549 7.49977H7.5C6.34482 7.49977 5.54479 7.91927 5.01953 8.54469C4.4782 9.18935 4.16667 10.1296 4.16667 11.2498C4.16668 12.3699 4.47819 13.3102 5.01953 13.9549C5.54479 14.5803 6.34484 14.9998 7.5 14.9998H10C10.4603 14.9998 10.8333 15.3729 10.8333 15.8331C10.8333 16.2933 10.4603 16.6664 10 16.6664H7.5C5.89388 16.6664 4.6104 16.0599 3.74268 15.0266C2.89112 14.0125 2.50001 12.6609 2.5 11.2498C2.5 9.83869 2.89113 8.4871 3.74268 7.47291C4.6104 6.43958 5.89385 5.8331 7.5 5.8331H14.6549L11.9108 3.08896C11.5854 2.76354 11.5854 2.23602 11.9108 1.91058Z",fill:"#fff"}))},Nf=function(e){return Go.createElement("svg",y({"data-testid":"Trash",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),Go.createElement("path",{clipRule:"evenodd",d:"M7.55758 4.25017C7.6296 3.87481 7.75758 3.73256 7.87369 3.65128C7.99454 3.56669 8.19891 3.47991 8.56146 3.41949C8.92362 3.35914 9.39079 3.33317 9.99996 3.33317C10.6092 3.33317 11.0764 3.35914 11.4385 3.41949C11.801 3.47991 12.0054 3.56669 12.1263 3.65128C12.2424 3.73256 12.3704 3.87481 12.4424 4.25017C11.7196 4.1984 10.9065 4.1665 9.99996 4.1665C9.09346 4.1665 8.2803 4.1984 7.55758 4.25017ZM5.85575 4.42505C5.92957 3.5488 6.20244 2.78673 6.91792 2.2859C7.31791 2.0059 7.79063 1.8583 8.28746 1.7755C8.78471 1.69262 9.35921 1.6665 9.99996 1.6665C10.6408 1.6665 11.2153 1.69262 11.7125 1.7755C12.2093 1.8583 12.682 2.0059 13.082 2.2859C13.7975 2.78673 14.0704 3.5488 14.1442 4.42505C14.5419 4.47947 14.8961 4.53848 15.208 4.59789C15.7812 4.70707 16.2109 4.81752 16.5036 4.90318C16.6499 4.946 16.762 4.98262 16.8405 5.00976C16.8797 5.02333 16.9105 5.03452 16.9331 5.04294L16.9608 5.05343L16.97 5.05701L16.9735 5.05837L16.9749 5.05895C16.9752 5.05906 16.9761 5.05944 16.6666 5.83317L16.9761 5.05944C17.4035 5.23037 17.6113 5.71535 17.4404 6.14266C17.2975 6.49966 16.9356 6.70348 16.5711 6.66122L16.0734 15.1939C15.9706 16.9565 14.5113 18.3332 12.7457 18.3332H7.25422C5.48867 18.3332 4.02937 16.9565 3.92655 15.1939L3.42881 6.66122C3.06437 6.70348 2.70237 6.49966 2.55958 6.14266C2.38865 5.71535 2.5965 5.23037 3.02382 5.05944L3.33331 5.83317C3.02382 5.05944 3.02351 5.05955 3.02382 5.05944L3.02506 5.05895L3.02649 5.05837L3.02994 5.05701L3.03914 5.05343L3.06682 5.04294C3.0894 5.03452 3.12027 5.02333 3.15952 5.00976C3.23802 4.98262 3.35004 4.946 3.49637 4.90318C3.78904 4.81752 4.21877 4.70707 4.79197 4.59789C5.10387 4.53848 5.45812 4.47947 5.85575 4.42505ZM5.59039 15.0969L5.07378 6.24087L5.10382 6.23512C6.1447 6.03685 7.75911 5.83317 9.99996 5.83317C12.2409 5.83317 13.8553 6.03685 14.8961 6.23512L14.9261 6.24087L14.4095 15.0969C14.3581 15.9782 13.6285 16.6665 12.7457 16.6665H7.25422C6.37145 16.6665 5.6418 15.9782 5.59039 15.0969ZM11.6666 7.49984C12.1269 7.49984 12.5 7.87294 12.5 8.33317V14.1665C12.5 14.6268 12.1269 14.9998 11.6666 14.9998C11.2064 14.9998 10.8333 14.6268 10.8333 14.1665V8.33317C10.8333 7.87294 11.2064 7.49984 11.6666 7.49984ZM9.16662 8.33317C9.16662 7.87294 8.79354 7.49984 8.33329 7.49984C7.87307 7.49984 7.49997 7.87294 7.49997 8.33317V14.1665C7.49997 14.6268 7.87307 14.9998 8.33329 14.9998C8.79354 14.9998 9.16662 14.6268 9.16662 14.1665V8.33317Z",fill:"#fff",fillRule:"evenodd"}))},Ff={modifiers:[{name:"offset",options:{offset:({popper:e})=>[-e.width/2,8]}},{name:"preventOverflow",options:{padding:50}}],placement:"top"},Bf=20,Uf=(e,t)=>{const{canComment:r,canRedo:n,canUndo:o,className:i,onDelete:a,onRedo:s,onReply:c,onUndo:u,reference:l}=e,d=(0,Yo.useSelector)(e=>We(e,"modernization")),f=(0,ri.useIntl)();return Wo().createElement(Yl,{ref:t,className:bi()(i,"ba-PopupDrawingToolbar",{"ba-PopupDrawingToolbar--modernized":d}),"data-resin-component":"popupDrawingToolbar",options:Ff,reference:l},Wo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},Wo().createElement("button",{className:"ba-PopupDrawingToolbar-undo","data-testid":"ba-PopupDrawingToolbar-undo",disabled:!o,onClick:()=>u(),title:f.formatMessage(au.drawingButtonUndo),type:"button"},d?Wo().createElement(Rf,{height:Bf,width:Bf}):Wo().createElement(Mf,null)),Wo().createElement("button",{className:"ba-PopupDrawingToolbar-redo","data-testid":"ba-PopupDrawingToolbar-redo",disabled:!n,onClick:()=>s(),title:f.formatMessage(au.drawingButtonRedo),type:"button"},d?Wo().createElement(jf,{height:Bf,width:Bf}):Wo().createElement(Df,null)),Wo().createElement("button",{className:"ba-PopupDrawingToolbar-delete","data-testid":"ba-PopupDrawingToolbar-delete",onClick:()=>a(),title:f.formatMessage(au.drawingButtonDelete),type:"button"},d?Wo().createElement(Nf,{height:Bf,width:Bf}):Wo().createElement(Pf,null))),Wo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},Wo().createElement("button",{className:"ba-PopupDrawingToolbar-comment","data-testid":"ba-PopupDrawingToolbar-comment",disabled:!r,onClick:()=>c(),type:"button"},Wo().createElement(ri.FormattedMessage,au.drawingButtonAddComment))))},Kf=Wo().forwardRef(Uf);function Hf(e){return 1e3*(e?.currentTime??0)}const zf=({targetType:e,referenceEl:t,activeAnnotationId:r,annotations:n})=>{const[o,i]=(0,Go.useState)(!1),[a,s]=(0,Go.useState)(null),c=(0,Go.useCallback)(()=>Hf(t),[t]);return(0,Go.useEffect)(()=>{if(e!==Pe.FRAME||!t)return;const r=()=>{i(!0)},n=()=>{i(!1),s(null)},u=()=>{if(o&&null!==a){const e=c();Math.abs(e-a)<=100&&(i(!1),s(null))}};return t.addEventListener("seeking",r),t.addEventListener("seeked",n),t.addEventListener("timeupdate",u),()=>{t.removeEventListener("seeking",r),t.removeEventListener("seeked",n),t.removeEventListener("timeupdate",u)}},[e,t,o,a,c]),(0,Go.useEffect)(()=>{if(e===Pe.FRAME&&r&&t){const e=c(),t=n.find(e=>e.id===r);if(t){const r=t.target.location.value;Math.abs(e-r)>100&&(s(r),i(!0))}}},[r,e,t,n,c]),{isVideoSeeking:o,getCurrentVideoLocation:c}},Vf=(e,t)=>e.drawing.location===t?e.drawing.drawnPathGroups:[],qf=(e,t)=>e.drawing.location===t?e.drawing.stashedPathGroups:[],Gf={addDrawingPathGroup:tr,redoDrawingPathGroup:rr,resetDrawing:nr,setActiveAnnotationId:ct,setReferenceId:Xt,setStaged:Zt,setStatus:Jt,setupDrawing:e=>(t,r)=>{const n=r();return hn(n)===Gt.staged&&t(nr()),t(or(e))},undoDrawingPathGroup:ir},Wf=(0,Yo.connect)((e,{location:t})=>{const r=hn(e);return{activeAnnotationId:Le(e),annotations:je(e,t).filter(Tt),color:wn(e),canShowPopupToolbar:r===Gt.started,drawnPathGroups:Vf(e,t),isCreating:bn(e)===g.DRAWING&&r!==Gt.pending,rotation:Ve(e),stashedPathGroups:qf(e,t)}},Gf)(Id(e=>{const{activeAnnotationId:t,addDrawingPathGroup:r,annotations:n,canShowPopupToolbar:o,color:i,drawnPathGroups:a,isCreating:s,location:c,popupPortalEl:u,redoDrawingPathGroup:l,resetDrawing:d,rotation:f,setActiveAnnotationId:p,setReferenceId:h,setStaged:g,setStatus:y,setupDrawing:m,stashedPathGroups:v,undoDrawingPathGroup:b,targetType:w,referenceEl:S}=e,[x,E]=Wo().useState(!1),[_,O]=Wo().useState(null),C=a.length>0,k=v.length>0,A=C||k,T=Wo().useRef(null),D=Wo().useRef(null),{current:I}=D,{isVideoSeeking:P,getCurrentVideoLocation:L}=zf({targetType:w,referenceEl:S,activeAnnotationId:t,annotations:n}),M=()=>{d()},R=()=>{l()},j=()=>{const e=w===Pe.FRAME?L():c;g({location:e,pathGroups:a}),y(Gt.staged)},N=()=>{b()};Wo().useEffect(()=>{const{current:e}=T;e?.popper&&a.length&&e.popper.update()},[a]);let F=[];return w===Pe.FRAME?!P&&t&&(F=n.filter(e=>e.id===t)):F=n,Wo().createElement(Wo().Fragment,null,Wo().createElement(ff,{activeId:t,annotations:F,className:"ba-DrawingAnnotations-list",onSelect:e=>{p(e)}}),A&&Wo().createElement(rf,{ref:O,className:"ba-DrawingAnnotations-target"},Wo().createElement(xf,{ref:D,onMount:e=>{h(e)}},a.map(({clientId:e,paths:t,stroke:r})=>Wo().createElement(nf,{key:e,rootEl:_,stroke:r},e=>t.map(({clientId:t,points:r})=>Wo().createElement(Qd,{key:t,borderStrokeWidth:e,isDecorated:!0,points:r})))))),s&&Wo().createElement(vf,{className:"ba-DrawingAnnotations-creator",color:i,onStart:()=>{m(c),y(Gt.started),E(!0)},onStop:e=>{r(e),E(!1)},rotation:f}),s&&A&&I&&o&&(()=>{const e=Wo().createElement(Kf,{ref:T,canComment:C,canRedo:k,canUndo:C,className:bi()("ba-DrawingAnnotations-toolbar",{"ba-is-drawing":x}),onDelete:M,onRedo:R,onReply:j,onUndo:N,reference:I});return u?gi().createPortal(e,u):e})())})),$f=["popupPortalEl"];class Yf extends Jo{constructor(e){let{popupPortalEl:t}=e;super(lt(e,$f)),f(this,"popupPortalEl",void 0),this.popupPortalEl=t}decorate(){this.reactEl.classList.add("ba-Layer--drawing"),this.reactEl.dataset.testid="ba-Layer--drawing"}render(e){this.root||(this.root=$o.createRoot(this.reactEl)),this.root.render(Go.createElement(Wf,y({referenceEl:this.referenceEl,targetType:this.targetType,location:this.location,popupPortalEl:this.popupPortalEl},e)))}}const Xf={display:"none"},Zf=e=>{const{x:t,y:r}=e,{x:n,y:o}=(e=>{const{height:t,width:r}=e;return{x:r/2,y:t/2}})(e);return{x:n+t,y:o+r}};function Jf(e){return"region"===e?.target?.type}function Qf(e){if(!e)return Xf;const{height:t,width:r,x:n,y:o}=e;return{display:"block",height:`${t}%`,left:`${n}%`,top:`${o}%`,width:`${r}%`}}const ep=(e,t)=>{const{annotationId:r,className:n,isActive:o,onSelect:i=Ir(),shape:a}=e;return Go.createElement("button",{ref:t,className:bi()("ba-RegionAnnotation",n,{"is-active":o}),"data-ba-annotation-id":r,"data-resin-itemid":r,"data-resin-target":"highlightRegion","data-testid":`ba-AnnotationTarget-${r}`,onFocus:()=>{i(r)},onMouseDown:e=>{1===e.buttons&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.focus())},style:Qf(a),type:"button"})},tp=Go.forwardRef(ep);function rp({target:e}){const{shape:t}=e,{height:r,width:n,x:o,y:i}=t;return cf(r)&&cf(n)&&cf(o)&&cf(i)}function np({target:e},{target:t}){const{shape:r}=e,{shape:n}=t;return r.height*r.width>n.height*n.width?-1:1}function op({activeId:e,annotations:t,className:r,onSelect:n=Ir()}){const o=sf(),i=Wo().createRef();return Wo().createElement("div",{ref:i,className:bi()(r,{"is-listening":o}),"data-resin-component":"regionList"},t.filter(rp).sort(np).map(({id:t,target:r})=>Wo().createElement(tp,{key:t,annotationId:t,isActive:e===t,onSelect:n,shape:r.shape})))}const ip=Wo().memo(op),ap={setActiveAnnotationId:ct},sp=(0,Yo.connect)((e,{location:t})=>({activeAnnotationId:Le(e),annotations:je(e,t).filter(Jf)}),ap)(Id(e=>{const{activeAnnotationId:t,annotations:r,setActiveAnnotationId:n,referenceEl:o,targetType:i}=e,{isVideoSeeking:a}=zf({targetType:i,referenceEl:o,activeAnnotationId:t||null,annotations:r||[]});let s=[];return i===Pe.FRAME?!a&&t&&(s=r.filter(e=>e.id===t)):s=r,Go.createElement(ip,{activeId:t,annotations:s,className:"ba-RegionAnnotations-list",onSelect:e=>{n(e)}})}));class cp extends Jo{decorate(){this.reactEl.classList.add("ba-Layer--region"),this.reactEl.dataset.testid="ba-Layer--region"}render(e){this.root||(this.root=$o.createRoot(this.reactEl)),this.root.render(Go.createElement(sp,y({location:this.location,referenceEl:this.referenceEl,targetType:this.targetType},e)))}}const up={modifiers:[{name:"offset",options:{offset:[0,20]}}],placement:"right"},lp=(e=0,t=0)=>()=>Wl(0,0,e,t);function dp(){const e=Wo().useRef(null),t=Wo().useRef({getBoundingClientRect:lp()}),r=({clientX:r,clientY:n})=>{t.current.getBoundingClientRect=lp(r,n);const{current:o}=e;o?.popper&&o.popper.update()};return Wo().useEffect(()=>(document.addEventListener("mousemove",r),()=>{document.removeEventListener("mousemove",r)}),[]),Wo().createElement(Yl,{ref:e,className:"ba-PopupCursor",options:up,reference:t.current},Wo().createElement(ri.FormattedMessage,au.regionCursorPrompt))}function fp(e,t){const{className:r,isActive:n,onMount:o=Ir(),shape:i}=e,a=bf(o);return Wo().createElement("div",{ref:t,className:bi()("ba-RegionRect",r,{"is-active":n}),"data-ba-reference-id":a,style:Qf(i)})}const pp=Wo().forwardRef(fp),hp=/(auto|scroll)/,gp=["overflow","overflow-x","overflow-y"],yp=e=>e&&e!==document.body?(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=getComputedStyle(e,null);return gp.some(e=>hp.test(t.getPropertyValue(e)))})(e)?e:yp(e.parentNode):document.body,mp=10;function vp({className:e,onAbort:t,onStart:r,onStop:n,rotation:o=0}){const[i,a]=Go.useState(hf.init),[s,c]=Go.useState(!1),u=Go.useRef(null),l=Go.useRef(null),d=Go.useRef(null),f=Go.useRef(null),p=Go.useRef(null),h=Go.useRef(!1),g=Go.useRef(null),m=Go.useRef(null),v=()=>{const{current:e}=u,{current:t}=l,{current:r}=f,{current:n}=d,{current:o}=p;if(!e||null===t||null===n||null===r||null===o)return null;const i=e.offsetWidth,a=e.offsetHeight,s=a-mp,c=i-mp,h=Math.max(0,i-0),g=Math.max(0,a-0),y=t>=c&&n>=c?t-mp:t,m=r>=s&&o>=s?r-mp:r,v=Math.min(Math.max(0,y<n?y:n),h),b=Math.min(Math.max(0,m<o?m:o),g),w=Math.min(Math.max(0,n>y?n:y),h),S=Math.min(Math.max(0,o>m?o:m),g);return{height:Math.max(mp,S-b)/a*100,type:"rect",width:Math.max(mp,w-v)/i*100,x:v/i*100,y:b/a*100}},b=Go.useCallback(()=>{const e=v();a(hf.init),l.current=null,f.current=null,d.current=null,p.current=null,h.current=!0,e?n(e):t()},[t,n,a]),w=Go.useCallback((e,t)=>{const[n,s]=mr(e,t,u.current,o),{current:c}=l,{current:g}=f,{current:y}=d;(null!==y||((e,t,r,n)=>Math.abs(r-e)>=mp||Math.abs(n-t)>=mp)(c??0,g??0,n,s))&&(d.current=n,p.current=s,h.current=!0,i!==hf.drawing&&(a(hf.drawing),r()))},[i,r,o,a]),S=e=>{m.current=window.requestAnimationFrame(e)},x=()=>{const{current:e}=h,{current:t}=g,r=v();e&&t&&r&&(y(t.style,Qf(r)),h.current=!1),S(x)};return Go.useEffect(()=>(i!==hf.init&&S(x),()=>{const{current:e}=m;e&&window.cancelAnimationFrame(e)}),[i]),function(e){const{enabled:t,intensity:r=.2,onScroll:n=Ir(),reference:o,size:i=50}=e,a=Wo().useRef(null),s=Wo().useRef(null),c=Wo().useRef(null),u=Wo().useRef(null),l=Wo().useRef(null),d=e=>{a.current=window.requestAnimationFrame(e)},f=()=>{const{current:e}=s,{current:t}=c,{current:o}=u,{current:a}=l;if(!e||!t||null===o||null===a)return d(f);const p=t.bottom-i,h=t.left+i,g=t.right-i,y=t.top+i,m=a>p,v=o<h,b=o>g,w=a<y;if(!(m||v||b||w))return d(f);let S=e.scrollLeft,x=e.scrollTop;return v?S-=(h-o)*r:b&&(S+=(o-g)*r),w?x-=(y-a)*r:m&&(x+=(a-p)*r),e.scrollLeft=Math.max(0,Math.min(Math.round(S),e.scrollWidth)),e.scrollTop=Math.max(0,Math.min(Math.round(x),e.scrollHeight)),n(o,a),d(f)},p=({clientX:e,clientY:t})=>{u.current=e,l.current=t},h=({targetTouches:e})=>{u.current=e[0].clientX,l.current=e[0].clientY};Wo().useEffect(()=>{o&&(s.current=yp(o),c.current=s.current.getBoundingClientRect())},[o]),Wo().useEffect(()=>(t&&(document.addEventListener("mousemove",p),document.addEventListener("touchmove",h),d(f)),()=>{const{current:e}=a;e&&window.cancelAnimationFrame(e),a.current=null,u.current=null,l.current=null,document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",h)}),[t])}({enabled:i!==hf.init,onScroll:(e,t)=>{w(e,t)},reference:u.current}),Go.createElement(yf,{ref:u,className:bi()(e,"ba-RegionCreator"),"data-testid":"ba-RegionCreator",onDrawStart:(e,t)=>{const[r,n]=mr(e,t,u.current,o);a(hf.dragging),l.current=r,f.current=n,d.current=null,p.current=null,h.current=!0},onDrawStop:b,onDrawUpdate:w,onMouseOut:()=>{c(!1)},onMouseOver:()=>{c(!0)},status:i},i===hf.drawing&&Go.createElement(pp,{ref:g,className:"ba-RegionCreator-rect",isActive:!0}),i===hf.init&&s&&Go.createElement(dp,null))}class bp extends Go.PureComponent{constructor(...e){super(...e),f(this,"state",{}),f(this,"handleAbort",()=>{const{resetCreator:e,staged:t}=this.props;t||e()}),f(this,"handleStart",()=>{const{setStaged:e,setStatus:t}=this.props;e(null),t(Gt.started)}),f(this,"handleStagedMount",e=>{const{setReferenceId:t}=this.props;t(e)}),f(this,"handleStop",e=>{const{location:t,setStaged:r,setStatus:n,targetType:o,referenceEl:i}=this.props;r({location:o!==Pe.FRAME?t:Hf(i),shape:e}),n(Gt.staged)})}render(){const{isCreating:e,rotation:t,staged:r}=this.props;return Go.createElement(Go.Fragment,null,e&&Go.createElement(vp,{className:"ba-RegionCreation-creator",onAbort:this.handleAbort,onStart:this.handleStart,onStop:this.handleStop,rotation:t}),r&&Go.createElement("div",{className:"ba-RegionCreation-target"},Go.createElement(pp,{isActive:!0,onMount:this.handleStagedMount,shape:r.shape})))}}f(bp,"defaultProps",{isCreating:!1,rotation:0});const wp={resetCreator:Wt,setReferenceId:Xt,setStaged:Zt,setStatus:Jt},Sp=(0,Yo.connect)((e,{location:t})=>{const r=pn(e,t);return{isCreating:bn(e)===g.REGION&&hn(e)!==Gt.pending,rotation:Ve(e),staged:mn(r)?r:null}},wp)(Id(bp));class xp extends Jo{decorate(){this.reactEl.classList.add("ba-Layer--regionCreation"),this.reactEl.dataset.testid="ba-Layer--regionCreation"}render(e){this.root||(this.root=$o.createRoot(this.reactEl)),this.root.render(Go.createElement(Sp,y({targetType:this.targetType,referenceEl:this.referenceEl,location:this.location},e)))}}const Ep="ba-is-drawing";function _p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Op(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class Cp{constructor({getSelection:e,store:t}){f(this,"getSelection",void 0),f(this,"store",void 0),f(this,"handleSelectionChange",()=>{if(Ld(this.store.getState()))return;const e=this.getSelection(),t=Ve(this.store.getState());this.store.dispatch(br(e?Op(Op({},e),{},{rotation:t}):null))}),f(this,"debounceHandleSelectionChange",du()(this.handleSelectionChange,500)),this.getSelection=e,this.store=t,document.addEventListener("selectionchange",this.debounceHandleSelectionChange)}destroy(){document.removeEventListener("selectionchange",this.debounceHandleSelectionChange)}}function kp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ap(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class Tp{constructor({getSelection:e,referenceEl:t,selectionChangeDelay:r=0,store:n}){f(this,"referenceEl",void 0),f(this,"getSelection",void 0),f(this,"selectionChangeDelay",void 0),f(this,"selectionChangeTimer",void 0),f(this,"store",void 0),f(this,"handleMouseDown",({buttons:e})=>{1===e&&(clearTimeout(this.selectionChangeTimer),this.store.dispatch(Sr(!0)),this.store.dispatch(br(null)))}),f(this,"handleMouseUp",()=>{Ld(this.store.getState())&&(this.selectionChangeTimer=window.setTimeout(()=>{const e=this.getSelection(),t=Ve(this.store.getState());this.store.dispatch(br(e?Ap(Ap({},e),{},{rotation:t}):null)),this.store.dispatch(Sr(!1))},this.selectionChangeDelay))}),this.getSelection=e,this.referenceEl=t,this.selectionChangeDelay=r,this.store=n}exists(e){return e.contains(this.referenceEl)}render(){this.store.dispatch(br(null)),this.referenceEl.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}style(){return this.referenceEl.style}destroy(){clearTimeout(this.selectionChangeTimer),this.referenceEl.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp)}}class Dp extends Go.PureComponent{constructor(...e){super(...e),f(this,"canvasRef",Go.createRef())}componentDidMount(){this.scaleCanvas(),this.renderRects()}componentDidUpdate(){this.clearCanvas(),this.renderRects()}getContext(){const{current:e}=this.canvasRef;return e?.getContext("2d")??null}scaleCanvas(){const{current:e}=this.canvasRef;e&&(e.width=e.offsetWidth,e.height=e.offsetHeight)}clearCanvas(){const{current:e}=this.canvasRef,t=e&&e.getContext("2d");e&&t&&t.clearRect(0,0,e.width,e.height)}renderRects(){const{shapes:e}=this.props,{current:t}=this.canvasRef,r=t&&t.getContext("2d"),n=t?.height??0,o=t?.width??0,i=Array.isArray(e)?e:[e];r&&i.forEach(e=>{const{height:t,isActive:i,isHover:a,width:s,x:c,y:u}=e;if(0===s||0===t)return;const l=t/100*n,d=s/100*o,f=c/100*o,p=u/100*n;if(r.save(),r.fillStyle="#ffd700",r.globalAlpha=i||a?.66:.33,r.fillRect(f,p,d,l),r.restore(),r.save(),r.strokeStyle=Ut,r.lineWidth=1,r.strokeRect(f,p,d,l),i){const e=r.getImageData(f,p,d,l);r.save(),r.shadowColor="#000",r.shadowBlur=10,r.strokeRect(f,p,d,l),r.putImageData(e,f,p),r.restore()}r.restore()})}render(){return Go.createElement("canvas",{ref:this.canvasRef,className:"ba-HighlightCanvas"})}}f(Dp,"defaultProps",{shapes:[]});const Ip=({children:e,className:t},r)=>Wo().createElement("svg",{ref:r,className:bi()("ba-HighlightSvg",t)},e),Pp=Wo().forwardRef(Ip),Lp=(e,t)=>{const{annotationId:r,className:n,isActive:o,onHover:i=Ir(),onMount:a=Ir(),onSelect:s=Ir(),shapes:c}=e,u=bf(a),l=()=>{s(r)};return Wo().createElement("a",{ref:t,className:bi()("ba-HighlightTarget",n,{"is-active":o}),"data-ba-annotation-id":r,"data-ba-reference-id":u,"data-resin-itemid":r,"data-resin-target":"highlightText","data-testid":`ba-AnnotationTarget-${r}`,href:"#",onClick:e=>{e.preventDefault(),e.stopPropagation()},onFocus:l,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():l()},onMouseEnter:()=>{i(r)},onMouseLeave:()=>{i(null)},role:"button",tabIndex:0},c.map(e=>{const{height:t,width:n,x:o,y:i}=e;return Wo().createElement("rect",{key:`${r}-${o}-${i}-${n}-${t}`,className:"ba-HighlightTarget-rect",fill:"none",height:`${t}%`,width:`${n}%`,x:`${o}%`,y:`${i}%`})}))},Mp=Wo().forwardRef(Lp);function Rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Np({target:e}){const{shapes:t=[]}=e;return t.every(({height:e,width:t,x:r,y:n})=>cf(e)&&cf(t)&&cf(r)&&cf(n))}function Fp(e){return e.reduce((e,{height:t,width:r})=>e+t*r,0)}function Bp({target:e},{target:t}){const{shapes:r}=e,{shapes:n}=t;return Fp(r)>Fp(n)?-1:1}function Up({activeId:e=null,annotations:t,className:r,onSelect:n}){const[o,i]=Wo().useState(null),a=Wo().createRef(),s=sf(),c=t.filter(Np).sort(Bp),u=function(e,t,r){return e.reduce((e,n)=>{const{id:o,target:{shapes:i}}=n;return e.concat(i.map(e=>jp(jp({},e),{},{isActive:t===o,isHover:r===o})))},[])}(c,e,o),l=e=>{i(e)};return Wo().createElement("div",{className:bi()("ba-HighlightList",r),"data-resin-component":"highlightList"},Wo().createElement(Dp,{shapes:u}),Wo().createElement(Pp,{ref:a,className:bi()({"is-listening":s})},c.map(({id:t,target:r})=>Wo().createElement(Mp,{key:t,annotationId:t,isActive:e===t,onHover:l,onSelect:n,shapes:r.shapes}))))}const Kp=Wo().memo(Up);function Hp(){return Hp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hp.apply(this,arguments)}const zp=e=>Go.createElement(Af,Hp({width:16,height:16,viewBox:"0 0 16 16"},e),Go.createElement("path",{d:"M5.75 1a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25H4v12h1.75a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-4.5a.25.25 0 01-.25-.25v-.5a.25.25 0 01.25-.25H3V2H1.25A.25.25 0 011 1.75v-.5A.25.25 0 011.25 1h4.5zM13 4a2 2 0 012 2v4a2 2 0 01-2 2H5.75a1 1 0 01-1-1V5a1 1 0 011-1H13zm-2.78 1.5a2.83 2.83 0 00-1.991.763l.206.372a.53.53 0 00.136.148.33.33 0 00.206.064.5.5 0 00.255-.066l.255-.148c.093-.055.202-.104.325-.148s.278-.066.465-.066c.26 0 .456.078.593.233s.206.395.206.72v.283c-.548.013-1.006.066-1.374.16s-.662.213-.883.356-.38.303-.474.48S8 9.008 8 9.2c0 .217.034.407.103.57a1.11 1.11 0 00.29.41 1.23 1.23 0 00.444.247c.17.055.358.082.56.082.17 0 .328-.014.47-.042a1.83 1.83 0 00.4-.127 2.87 2.87 0 00.36-.2 4.18 4.18 0 00.355-.29l.103.344c.034.1.08.167.14.2s.143.05.252.05H12V7.37a2.29 2.29 0 00-.119-.754 1.64 1.64 0 00-.348-.59 1.59 1.59 0 00-.561-.386 1.93 1.93 0 00-.752-.139zm.654 2.86v.815a1.812 1.812 0 01-.507.393 1.36 1.36 0 01-.614.13c-.193 0-.35-.044-.47-.132s-.18-.234-.18-.438c0-.104.03-.2.09-.287a.72.72 0 01.294-.231c.137-.066.32-.12.544-.163a6.27 6.27 0 01.843-.087z",fill:Ht,fillRule:"evenodd"}));function Vp(e,t,r){Go.useEffect(()=>{function n(e){const n=t instanceof Element?t:t?.current,o=!!n?.contains(e.target);r&&!o&&r(e)}return document.addEventListener(e,n),()=>{document.removeEventListener(e,n)}},[r,t,e])}const qp={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function Gp({onCancel:e=Ir(),onSubmit:t=Ir(),shape:r}){const n=Wo().useRef(null),{height:o,width:i,x:a,y:s}=r,c={getBoundingClientRect:()=>Wl(o,i,a,s)};return Vp("keydown",n,e=>{e instanceof KeyboardEvent&&"Enter"===e.key&&!e.ctrlKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),t())}),Vp("mousedown",n,e),Wo().createElement(Yl,{"aria-live":"polite",className:"ba-PopupHighlight",options:qp,reference:c,role:"dialog"},Wo().createElement("button",{ref:n,"aria-haspopup":"dialog",className:"ba-PopupHighlight-button","data-testid":"ba-PopupHighlight-button",onClick:t,type:"button"},Wo().createElement(zp,{className:"ba-PopupHighlight-icon"}),Wo().createElement(ri.FormattedMessage,au.popupHighlightPromoter)))}const Wp={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function $p({onCancel:e=Ir(),shape:t}){const r=Wo().useRef(null),{height:n,width:o,x:i,y:a}=t,s={getBoundingClientRect:()=>Wl(n,o,i,a)};return Vp("mousedown",r.current?.popupRef,e),Wo().createElement(Yl,{ref:r,className:"ba-PopupHighlightError","data-testid":"ba-PopupHighlightError",options:Wp,reference:s},Wo().createElement(ri.FormattedMessage,au.popupHighlightRestrictedPrompt))}function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Zp={setActiveAnnotationId:ct,setIsPromoting:wr,setReferenceId:Xt,setSelection:br,setStaged:Zt,setStatus:Jt},Jp=(0,Yo.connect)((e,{location:t})=>{const r=pn(e,t);return{activeAnnotationId:Le(e),annotations:je(e,t).filter(lr),isCreating:bn(e)===g.HIGHLIGHT,isPending:hn(e)===Gt.pending,isPromoting:Pd(e),isSelecting:Ld(e),rotation:Ve(e),selection:Md(e,t),staged:yn(r)?r:null}},Zp)(Id(e=>{const{activeAnnotationId:t,annotations:r=[],isCreating:n=!1,isPending:o=!1,isPromoting:i=!1,isSelecting:a=!1,popupPortalEl:s,rotation:c,selection:u,setActiveAnnotationId:l,setIsPromoting:d,setReferenceId:f,setSelection:p,setStaged:h,setStatus:g,staged:y}=e,m=n||i,v=Go.useCallback(()=>{if(!u)return;const{containerRect:e,location:t,rects:r}=u;h({location:t,shapes:r.map(t=>Xp(Xp({},((e,t)=>{const{height:r,width:n,x:o,y:i}=e,{height:a,width:s,x:c,y:u}=t;return{height:r/a*100,width:n/s*100,x:Math.max(0,o-c)/s*100,y:Math.max(0,i-u)/a*100}})(t,e)),{},{type:"rect"}))}),g(Gt.staged)},[u,h,g]),b=()=>{p(null)},w=()=>{v(),d(!0)};return Go.useEffect(()=>{a&&!o&&(h(null),g(Gt.init))},[a,o,h,g]),Go.useEffect(()=>{n&&u&&!u.hasError&&!o&&v()},[n,o,u,v]),Go.createElement(Go.Fragment,null,Go.createElement(Kp,{activeId:t,annotations:r,onSelect:e=>{l(e)}}),m&&y&&Go.createElement("div",{className:"ba-HighlightAnnotations-target"},Go.createElement(Dp,{shapes:y.shapes}),Go.createElement(Pp,null,Go.createElement(Mp,{annotationId:"staged",isActive:!0,onMount:e=>{f(e)},shapes:y.shapes}))),!n&&u&&!u.hasError&&(()=>{const e=u.popupRect||ur(u.rects),t=Go.createElement("div",{className:"ba-HighlightAnnotations-popup"},Go.createElement(Gp,{onCancel:b,onSubmit:w,shape:e}));return c&&s?gi().createPortal(t,s):t})(),u&&u.hasError&&(()=>{const e=u.popupRect||ur(u.rects),t=Go.createElement("div",{className:"ba-HighlightAnnotations-popup"},Go.createElement($p,{onCancel:b,shape:e}));return c&&s?gi().createPortal(t,s):t})())})),Qp=["popupPortalEl"];class eh extends Jo{constructor(e){let{popupPortalEl:t}=e;super(lt(e,Qp)),f(this,"popupPortalEl",void 0),this.popupPortalEl=t}decorate(){this.reactEl.classList.add("ba-Layer--highlight"),this.reactEl.dataset.testid="ba-Layer--highlight"}render(e){this.root||(this.root=$o.createRoot(this.reactEl)),this.root.render(Go.createElement(Jp,y({location:this.location,popupPortalEl:this.popupPortalEl},e)))}}function th(e,t){for(let r=e;r&&r!==document.body;r=r.parentNode)if(r.classList&&r.classList.contains(t))return r;return null}function rh(e){const t=th(e,"page"),r=t&&t.getAttribute("data-page-number");return r?parseInt(r,10):void 0}function nh(){const e=window.getSelection();if(!e||e.isCollapsed||!e.rangeCount||!e.focusNode)return null;let t=e.getRangeAt(e.rangeCount-1);const r=e.getRangeAt(0);t.setStart(r.startContainer,r.startOffset);const n=th(t.endContainer,"textLayer"),o=rh(t.startContainer),i=rh(t.endContainer);if(!n||!o||!i)return null;const a=o!==i;let s=i;return a&&(t=document.createRange(),t.setEnd(e.focusNode,e.focusOffset),t.collapse(!1),s=rh(e.focusNode)??i),{containerEl:n,containerRect:n.getBoundingClientRect(),hasError:a,location:s,range:t}}let oh=function(e){return e.CAN_CREATE_ANNOTATIONS="can_create_annotations",e.CAN_VIEW_ANNOTATIONS="can_view_annotations",e}({});const ih="ba-is-drawing";function ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ah(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const ch=[{CONSTRUCTOR:class extends pi{constructor(e){super(e),f(this,"annotatedEl",void 0),f(this,"highlightListener",void 0),f(this,"managers",new Map),f(this,"managersViewMode",null),f(this,"handleChangeMode",({mode:e})=>{if(!this.annotatedEl||"boundingBoxes"===Be(this.store.getState()))return;this.removeAnnotationClasses();const t=this.annotatedEl,r=fi[e];r&&t.classList.add(r)}),this.highlightListener=new Cp({getSelection:nh,store:this.store}),this.addListener(Lr.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode)}destroy(){this.removeListener(Lr.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode),this.highlightListener&&this.highlightListener.destroy(),this.managers&&this.managers.forEach(e=>e.forEach(e=>e.destroy())),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-doc")}clearManagers(){this.managers.forEach(e=>e.forEach(e=>e.destroy())),this.managers.clear(),this.managersViewMode=null}getPageManagers(e){const t=Ue(this.store.getState()),r=He(this.store.getState()),n=this.getPageNumber(e),o=this.getPageReference(e),i={fileid:t,iscurrent:r},a=Be(this.store.getState()),s=this.managers.get(n)||new Set;let c=!1;if(s.forEach(t=>{t.exists(e)||(c=!0)}),c&&(s.forEach(e=>{e.destroy()}),s.clear()),0===s.size){if("boundingBoxes"===a)return s.add(new $d({location:n,referenceEl:o,resinTags:i})),s;s.add(new Fd({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new Yf({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i}));const t=e.querySelector(".textLayer");t&&s.add(new Tp({getSelection:nh,referenceEl:t,selectionChangeDelay:300,store:this.store})),s.add(new eh({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new cp({location:n,referenceEl:o,resinTags:i}));const r=e.querySelector(".canvasWrapper");s.add(new xp({location:n,referenceEl:r||o,resinTags:i}))}return s}getPageNumber(e){return parseInt(e.dataset.pageNumber||"",10)||1}getPageReference(e){const t=e.querySelector(".annotationLayer"),r=e.querySelector(".canvasWrapper"),n=e.querySelector(".textLayer");return t||n||r}getPage(e){return this.getPages().find(t=>e===this.getPageNumber(t))}getPages(){return this.annotatedEl?Array.from(this.annotatedEl.querySelectorAll(".page")):[]}render(){const e=Be(this.store.getState());null!==this.managersViewMode&&this.managersViewMode!==e&&this.clearManagers(),this.managersViewMode=e,this.getPages().filter(({dataset:e})=>e.loaded&&e.pageNumber).forEach(e=>this.renderPage(e)),this.postRender()}postRender(){"boundingBoxes"!==Be(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}renderPage(e){const t=this.getPageManagers(e),r=this.getPageNumber(e),n=Ve(this.store.getState())||0,o=e.clientWidth,i=e.clientHeight-30,a=n%180!=0,s=a?i:o,c=a?o:i;t.forEach(e=>{n?e.style({height:`${c}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) rotate(${n}deg)`,width:`${s}px`}):e.style({height:"",left:"",top:"",transform:"",width:""}),e.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.managers.set(r,t)}scrollToAnnotation(e){if(!e)return;const t=Me(this.store.getState(),e),r=t?.target.location.value??1,n=this.getPage(r);if(!(t&&r&&n&&this.annotatedEl))return;let o=null;Jf(t)?o=Zf(t.target.shape):lr(t)?o=(e=>{const t=ur(e),{x:r,y:n}=t,{x:o,y:i}=(e=>{const{height:t,width:r}=e;return{x:r/2,y:t/2}})(t);return{x:o+r,y:i+n}})(t.target.shapes):Tt(t)&&(o=Dt(t.target.path_groups)),o&&li(this.annotatedEl,n,{offsets:o})}getScrollReferenceForHighlight(e){return this.getPage(e.pageNumber)}},NAME:"Document",TYPES:[cr.highlight,cr.region],VIEWERS:["AutoCAD","Document","Presentation"]},{CONSTRUCTOR:class extends pi{constructor(e){super(e),f(this,"annotatedEl",void 0),f(this,"managers",new Set),f(this,"managersViewMode",null),f(this,"storeHandler",void 0),f(this,"handleStore",()=>{const e=this.getReference();e&&(hn(this.store.getState())===Gt.started?e.classList.add(Ep):e.classList.remove(Ep))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-image")}clearManagers(){this.managers.forEach(e=>e.destroy()),this.managers.clear(),this.managersViewMode=null}getManagers(e,t){const r={fileid:Ue(this.store.getState()),iscurrent:He(this.store.getState())},n=Be(this.store.getState());if(this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size){if("boundingBoxes"===n)return this.managers.add(new $d({location:1,referenceEl:t,resinTags:r})),this.managers;this.managers.add(new Fd({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:r})),this.managers.add(new Yf({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:r})),this.managers.add(new cp({referenceEl:t,resinTags:r})),this.managers.add(new xp({referenceEl:t,resinTags:r}))}return this.managers}getReference(){return this.annotatedEl?.querySelector("img")}render(){const e=this.getReference(),t=Ve(this.store.getState())||0,r=Be(this.store.getState());this.annotatedEl&&e&&(null!==this.managersViewMode&&this.managersViewMode!==r&&this.clearManagers(),this.managersViewMode=r,this.getManagers(this.annotatedEl,e).forEach(r=>{r.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),r.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}postRender(){"boundingBoxes"!==Be(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}getScrollReferenceForHighlight(){return this.getReference()}getAdjustedScrollOffsets(e){return yr(e,Ve(this.store.getState())||0)}scrollToAnnotation(e){if(!e)return;const t=Me(this.store.getState(),e),r=t?.target.location.value??1,n=this.getReference(),o=Ve(this.store.getState())||0;if(!(t&&r&&n&&this.annotatedEl))return;let i=null;Jf(t)?i=Zf(t.target.shape):Tt(t)&&(i=Dt(t.target.path_groups)),i&&li(this.annotatedEl,n,{offsets:yr(i,o)})}},NAME:"Image",TYPES:[cr.region],VIEWERS:["Image"]},{CONSTRUCTOR:class extends pi{constructor(e){super(e),f(this,"annotatedEl",void 0),f(this,"managers",new Set),f(this,"storeHandler",void 0),f(this,"handleStore",()=>{const e=this.getReference();e&&(hn(this.store.getState())===Gt.started?e.classList.add(ih):e.classList.remove(ih))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-media")}addManagers(e,t){this.managers.add(new Fd({location:Ie,popupPortalEl:this.popupPortalEl,referenceEl:e,resinTags:t,targetType:Pe.FRAME})),this.managers.add(new Yf({location:Ie,referenceEl:e,resinTags:t,targetType:Pe.FRAME})),this.managers.add(new cp({location:Ie,referenceEl:e,resinTags:t,targetType:Pe.FRAME})),this.managers.add(new xp({location:Ie,referenceEl:e,resinTags:t,targetType:Pe.FRAME}))}getManagers(e,t){const r={fileid:Ue(this.store.getState()),iscurrent:He(this.store.getState())};return this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size&&this.addManagers(t,r),this.managers}getReference(){return this.annotatedEl?.querySelector("video")}render(){const e=this.getReference(),t=Ve(this.store.getState())||0;this.annotatedEl&&e&&(this.getManagers(this.annotatedEl,e).forEach(r=>{r.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),r.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}scrollToAnnotation(e,t=-1){if(!e)return;const r=Me(this.store.getState(),e),n=r?.target?.location?.value??t,o=this.getReference();o&&this.annotatedEl&&-1!==n&&(o.pause(),o.currentTime=n/1e3)}},NAME:"Media",TYPES:[cr.region],VIEWERS:["Dash","MP4"]}];class uh{constructor(e,t){f(this,"annotators",void 0),f(this,"annotationsOptions",void 0),f(this,"viewerOptions",void 0),this.annotators=ch,this.annotationsOptions=t,this.viewerOptions=e}canLoad(e){return!(!e||!e[oh.CAN_CREATE_ANNOTATIONS]&&!e[oh.CAN_VIEW_ANNOTATIONS])}getAnnotators(){return Array.isArray(this.annotators)?this.annotators:[]}getAnnotatorsForViewer(e=""){return this.getAnnotators().find(t=>t.VIEWERS.includes(e))}determineAnnotator(e,t={}){const r=this.getAnnotatorsForViewer(h()(e,"viewer.NAME")),n=this.canLoad(h()(e,"file.permissions"));if(!r||!n||!1===t.enabled)return null;const o=h()(this.viewerOptions,[r.NAME,"enabledTypes"]),i=h()(t,"enabledTypes"),a=(o||i||r.TYPES||[]).filter(e=>r.TYPES.some(t=>t===e));return sh(sh({},r),{},{TYPES:a})}getOptions(){return this.annotationsOptions}}globalThis.BoxAnnotations=uh;const lh=uh;export{lh as default};
|
|
2
|
+
import{BlueprintModernizationProvider as e,TooltipProvider as t}from"@box/blueprint-web";import{MentionContextProvider as r,MessageEditorV2 as n,ThreadedAnnotationsV2 as o,parseMessageMarkdown as i,serializeMentionMarkup as a,serializeMessageToMarkdown as s}from"@box/threaded-annotations";var c={617(e,t,r){var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=r(9030);function i(e,t){if(!(e instanceof a))throw new TypeError("Method Intl.PluralRules.prototype."+t+" called on incompatible receiver "+String(e))}var a=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");var n=o.getCanonicalLocales(t),i=Object.create(null),a=void 0===r?Object.create(null):o.toObject(r);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedPluralRules",!0);var s=o.getOption(a,"localeMatcher","string",["best fit","lookup"],"best fit");i.localeMatcher=s,o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type",o.getOption(a,"type","string",["cardinal","ordinal"],"cardinal")),o.setNumberFormatDigitOptions(e.__INTERNAL_SLOT_MAP__,this,a,0,3);var c=o.createResolveLocale(e.getDefaultLocale)(e.availableLocales,n,i,e.relevantExtensionKeys,e.localeData);o.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",c.locale)}return e.prototype.resolvedOptions=function(){var t=this;i(this,"resolvedOptions");var r=Object.create(null);return r.locale=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),r.type=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type"),["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(n){var i=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,t,n);void 0!==i&&(r[n]=i)}),r.pluralCategories=n(e.localeData[r.locale].categories[r.type]),r},e.prototype.select=function(t){i(this,"select");var r=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),n=o.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"type");return e.localeData[r].fn(function(e,t,r){var n=o.getInternalSlot(e,t,"minimumSignificantDigits"),i=o.getInternalSlot(e,t,"maximumSignificantDigits");return void 0!==n&&void 0!==i?function(e,t,r){var n=e.toPrecision(r);if(~n.indexOf(".")&&r>t){for(var o=r-t;o>0&&"0"===n[n.length-1];)n=n.slice(0,n.length-1),o--;if("."===n[n.length-1])return n.slice(0,n.length-1)}return n}(r,n,i):function(e,t,r,n){for(var o=n-r,i=e.toFixed(n);o>0&&"0"===i[i.length-1];)i=i.slice(0,i.length-1),o--;"."===i[i.length-1]&&(i=i.slice(0,i.length-1));var a=i.split(".")[0].length;if(a<t){for(var s="";s.length<t-a;s+="0");i=s+i}return i}(r,o.getInternalSlot(e,t,"minimumIntegerDigits"),o.getInternalSlot(e,t,"minimumFractionDigits"),o.getInternalSlot(e,t,"maximumFractionDigits"))}(e.__INTERNAL_SLOT_MAP__,this,Math.abs(Number(t))),"ordinal"==n)},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return o.supportedLocales(e.availableLocales,o.getCanonicalLocales(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i=function(t){var r=Object.keys(n(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{}));r.forEach(function(r){try{e.localeData[r]=o.unpackData(r,t)}catch(e){if(o.isMissingLocaleDataError(e))return;throw e}})},a=0,s=t;a<s.length;a++)i(s[a]);e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=[],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.PluralRules=a;try{Object.defineProperty(a,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(a.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},8139(){Intl.PluralRules&&"function"==typeof Intl.PluralRules.__addLocaleData&&Intl.PluralRules.__addLocaleData({data:{en:{categories:{cardinal:["one","other"],ordinal:["one","two","few","other"]},fn:function(e,t){var r=String(e).split("."),n=!r[1],o=Number(r[0])==e,i=o&&r[0].slice(-1),a=o&&r[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&n?"one":"other"}}},aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"},availableLocales:["en"]})},1761(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(617);(void 0===Intl.PluralRules||!Intl.PluralRules.polyfilled&&"one"===new Intl.PluralRules("en",{minimumFractionDigits:2}).select(1))&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},1624(e,t,r){r(1761)},6190(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var s=r(9030),c=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function u(e){return e+""}function l(e,t,r,n){if(s.invariant("number"==typeof r,"value must be number, instead got "+typeof r,TypeError),s.invariant("string"==typeof n,"unit must be number, instead got "+typeof r,TypeError),isNaN(r)||r===1/0||r===-1/0)throw new RangeError("Invalid value "+r);var i=function(e){if(s.invariant("string"==typeof e,"unit must be a string, instead got "+typeof e,TypeError),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw new RangeError("Invalid unit "+e);return e}(n),a=s.getInternalSlot(e,t,"fields"),c=s.getInternalSlot(e,t,"style"),l=i;"short"===c?l=n+"-short":"narrow"===c&&(l=n+"-narrow"),l in a||(l=n);var d=a[l];if("auto"===s.getInternalSlot(e,t,"numeric")&&u(r)in d)return[{type:"literal",value:d[u(r)]}];var p="future";(function(e){return Object.is?Object.is(e,-0):-0===e?0!==e||1/e==-1/0:e!=e&&!1}(r)||r<0)&&(p="past");var f=d[p],h=s.getInternalSlot(e,t,"pluralRules"),g=s.getInternalSlot(e,t,"numberFormat"),m="function"==typeof g.formatToParts?g.formatToParts(Math.abs(r)):[{type:"literal",value:g.format(Math.abs(r)),unit:n}];return function(e,t,r){var n,i,a,c,u=s.partitionPattern(e),l=[];try{for(var d=o(u),p=d.next();!p.done;p=d.next()){var f=p.value;if(s.isLiteralPart(f))l.push({type:"literal",value:f.value});else{s.invariant("0"===f.type,"Malformed pattern "+e);try{for(var h=(a=void 0,o(r)),g=h.next();!g.done;g=h.next()){var m=g.value;l.push({type:m.type,value:m.value,unit:t})}}catch(e){a={error:e}}finally{try{g&&!g.done&&(c=h.return)&&c.call(h)}finally{if(a)throw a.error}}}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return l}(f[h.select(r)],i,m)}var d=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat",!0);var n=s.getCanonicalLocales(t),o=Object.create(null),i=void 0===r?Object.create(null):s.toObject(r),a=s.getOption(i,"localeMatcher","string",["best fit","lookup"],"best fit");o.localeMatcher=a;var u=s.getOption(i,"numberingSystem","string",void 0,void 0);if(void 0!==u&&!c.test(u))throw new RangeError("Invalid numbering system "+u);o.nu=u;var l=s.createResolveLocale(e.getDefaultLocale)(e.availableLocales,n,o,e.relevantExtensionKeys,e.localeData),d=l.locale,p=l.nu;s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale",d),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style",s.getOption(i,"style","string",["long","narrow","short"],"long")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric",s.getOption(i,"numeric","string",["always","auto"],"always")),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"fields",e.localeData[d]),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberFormat",new Intl.NumberFormat(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"pluralRules",new Intl.PluralRules(t)),s.setInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem",p)}return e.prototype.format=function(t,r){if("object"!=typeof this)throw new TypeError("format was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("format was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(r)).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(t,r){if("object"!=typeof this)throw new TypeError("formatToParts was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("formatToParts was called on a invalid context");return l(e.__INTERNAL_SLOT_MAP__,this,Number(t),u(r))},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw new TypeError("resolvedOptions was called on a non-object");if(!s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"initializedRelativeTimeFormat"))throw new TypeError("resolvedOptions was called on a invalid context");return{locale:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"locale"),style:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"style"),numeric:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numeric"),numberingSystem:s.getInternalSlot(e.__INTERNAL_SLOT_MAP__,this,"numberingSystem")}},e.supportedLocalesOf=function(t,r){return s.supportedLocales(e.availableLocales,s.getCanonicalLocales(t),r)},e.__addLocaleData=function(){for(var t,r,i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=function(t){var r=Object.keys(a(t.availableLocales,Object.keys(t.aliases),Object.keys(t.parentLocales)).reduce(function(e,t){return e[t]=!0,e},{}));r.forEach(function(r){try{e.localeData[r]=function(e,t){var r=s.getLocaleHierarchy(e,t.aliases,t.parentLocales),o=r.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new Error('Missing locale data for "'+e+'", lookup hierarchy: '+r.join(", "));return o.reverse(),o.reduce(function(e,t){return n(n({},e),t)},{nu:[]})}(r,t)}catch(e){}})};try{for(var l=o(i),d=l.next();!d.done;d=l.next())u(d.value)}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}e.availableLocales=Object.keys(e.localeData),e.__defaultLocale||(e.__defaultLocale=e.availableLocales[0])},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=[],e.__defaultLocale="en",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e.__INTERNAL_SLOT_MAP__=new WeakMap,e}();t.default=d;try{"undefined"!=typeof Symbol&&Object.defineProperty(d.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(d.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},2844(){Intl.RelativeTimeFormat&&"function"==typeof Intl.RelativeTimeFormat.__addLocaleData&&Intl.RelativeTimeFormat.__addLocaleData({data:{"en-001":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-150":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wk"},past:{one:"{0} wk ago",other:"{0} wk ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}},"second-short":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}},"en-AU":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"in {0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk",other:"in {0} wks"},past:{one:"{0} wk ago",other:"{0} wks ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}},"en-CA":{"year-short":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"year-narrow":{0:"this yr",1:"next yr",future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"},"-1":"last yr"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"month-short":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"month-narrow":{0:"this mo",1:"next mo",future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"},"-1":"last mo"},"week-short":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"week-narrow":{0:"this wk",1:"next wk",future:{one:"in {0} wk.",other:"in {0} wks."},past:{one:"{0} wk. ago",other:"{0} wks. ago"},"-1":"last wk"},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}},"en-SG":{"quarter-short":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtrs"},past:{one:"{0} qtr ago",other:"{0} qtrs ago"},"-1":"last qtr"},"quarter-narrow":{0:"this qtr",1:"next qtr",future:{one:"in {0} qtr",other:"in {0} qtr"},past:{one:"{0} qtr ago",other:"{0} qtr ago"},"-1":"last qtr"},"month-short":{0:"this mth",1:"next mth",future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"},"-1":"last mth"}},en:{nu:["latn"],year:{0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"},"-1":"last year"},"year-short":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},"year-narrow":{0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"},"-1":"last yr."},quarter:{0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"},"-1":"last quarter"},"quarter-short":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},"quarter-narrow":{0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},"-1":"last qtr."},month:{0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"},"-1":"last month"},"month-short":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},"month-narrow":{0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"},"-1":"last mo."},week:{0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"},"-1":"last week"},"week-short":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},"week-narrow":{0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"},"-1":"last wk."},day:{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-short":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},"day-narrow":{0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"},"-1":"yesterday"},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},"second-narrow":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}},availableLocales:["en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-US-POSIX","en-US","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","en"],aliases:{},parentLocales:{"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150"}})},1534(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(6190);"RelativeTimeFormat"in Intl||Object.defineProperty(Intl,"RelativeTimeFormat",{value:n.default,writable:!0,enumerable:!1,configurable:!0})},1113(e,t,r){r(1534)},9030(e,t,r){r.d(t,{InternalSlotToken:()=>B,SANCTIONED_UNITS:()=>U,createResolveLocale:()=>D,defaultNumberOption:()=>p,getAliasesByLang:()=>h,getCanonicalLocales:()=>C,getInternalSlot:()=>b,getLocaleHierarchy:()=>M,getMultiInternalSlots:()=>v,getNumberOption:()=>f,getOption:()=>d,getParentLocalesByLang:()=>g,invariant:()=>c,isLiteralPart:()=>w,isMissingLocaleDataError:()=>N,isWellFormedCurrencyCode:()=>O,objectIs:()=>E,partitionPattern:()=>S,removeUnitNamespace:()=>K,selectUnit:()=>o,setInternalSlot:()=>m,setMultiInternalSlots:()=>y,setNumberFormatDigitOptions:()=>x,supportedLocales:()=>R,toObject:()=>u,toString:()=>l,unpackData:()=>F}),r.r(t);var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function o(e,t,r){void 0===t&&(t=Date.now()),void 0===r&&(r={});var o=n(n({},i),r||{}),a=(+e-+t)/1e3;if(Math.abs(a)<o.second)return{value:Math.round(a),unit:"second"};var s=a/60;if(Math.abs(s)<o.minute)return{value:Math.round(s),unit:"minute"};var c=a/3600;if(Math.abs(c)<o.hour)return{value:Math.round(c),unit:"hour"};var u=a/86400;if(Math.abs(u)<o.day)return{value:Math.round(u),unit:"day"};var l=new Date(e),d=new Date(t),p=l.getFullYear()-d.getFullYear();if(Math.round(Math.abs(p))>0)return{value:Math.round(p),unit:"year"};var f=12*p+l.getMonth()-d.getMonth();if(Math.round(Math.abs(f))>0)return{value:Math.round(f),unit:"month"};var h=a/604800;return{value:Math.round(h),unit:"week"}}var i={second:45,minute:45,hour:22,day:5};const a={"aa-SAAHO":"ssy",aam:"aas",aar:"aa",abk:"ab",adp:"dz",afr:"af",aju:"jrb",aka:"ak",alb:"sq",als:"sq",amh:"am",ara:"ar",arb:"ar",arg:"an",arm:"hy","art-lojban":"jbo",asd:"snz",asm:"as",aue:"ktz",ava:"av",ave:"ae",aym:"ay",ayr:"ay",ayx:"nun","az-AZ":"az-Latn-AZ",aze:"az",azj:"az",bak:"ba",bam:"bm",baq:"eu",bcc:"bal",bcl:"bik",bel:"be",ben:"bn",bgm:"bcg",bh:"bho",bih:"bho",bis:"bi",bjd:"drl",bod:"bo",bos:"bs",bre:"br","bs-BA":"bs-Latn-BA",bul:"bg",bur:"my",bxk:"luy",bxr:"bua",cat:"ca",ccq:"rki","cel-gaulish":"xtg-x-cel-gaulish",ces:"cs",cha:"ch",che:"ce",chi:"zh",chu:"cu",chv:"cv",cjr:"mom",cka:"cmr",cld:"syr",cmk:"xch",cmn:"zh",cnr:"sr-ME",cor:"kw",cos:"co",coy:"pij",cqu:"quh",cre:"cr",cwd:"cr",cym:"cy",cze:"cs",dan:"da",deu:"de",dgo:"doi",dhd:"mwr",dik:"din",diq:"zza",dit:"dif",div:"dv",drh:"mn",drw:"fa-af",dut:"nl",dzo:"dz",ekk:"et",ell:"el",emk:"man",eng:"en",epo:"eo",esk:"ik",est:"et",eus:"eu",ewe:"ee",fao:"fo",fas:"fa",fat:"ak",fij:"fj",fin:"fi",fra:"fr",fre:"fr",fry:"fy",fuc:"ff",ful:"ff",gav:"dev",gaz:"om",gbo:"grb",geo:"ka",ger:"de",gfx:"vaj",ggn:"gvr",gla:"gd",gle:"ga",glg:"gl",glv:"gv",gno:"gon",gre:"el",grn:"gn",gti:"nyc",gug:"gn",guj:"gu",guv:"duz",gya:"gba","ha-Latn-GH":"ha-GH","ha-Latn-NE":"ha-NE","ha-Latn-NG":"ha-NG",hat:"ht",hau:"ha",hbs:"sr-Latn",hdn:"hai",hea:"hmn",heb:"he",her:"hz",him:"srx",hin:"hi",hmo:"ho",hrr:"jal",hrv:"hr",hun:"hu",hye:"hy","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","i-default":"en-x-i-default","i-enochian":"und-x-i-enochian","i-mingo":"see-x-i-mingo",ibi:"opa",ibo:"ig",ice:"is",ido:"io",iii:"ii",ike:"iu",iku:"iu",ile:"ie",ilw:"gal",in:"id",ina:"ia",ind:"id",ipk:"ik",isl:"is",ita:"it",iw:"he",jav:"jv",jeg:"oyb",ji:"yi",jpn:"ja",jw:"jv",kal:"kl",kan:"kn",kas:"ks",kat:"ka",kau:"kr",kaz:"kk",kgc:"tdf",kgh:"kml",khk:"mn",khm:"km",kik:"ki",kin:"rw",kir:"ky","kk-Cyrl-KZ":"kk-KZ",kmr:"ku",knc:"kr",kng:"kg",knn:"kok",koj:"kwv",kom:"kv",kon:"kg",kor:"ko",kpv:"kv",krm:"bmf","ks-Arab-IN":"ks-IN",ktr:"dtp",kua:"kj",kur:"ku",kvs:"gdj",kwq:"yam",kxe:"tvd","ky-Cyrl-KG":"ky-KG",kzj:"dtp",kzt:"dtp",lao:"lo",lat:"la",lav:"lv",lbk:"bnc",lii:"raq",lim:"li",lin:"ln",lit:"lt",llo:"ngt",lmm:"rmx",ltz:"lb",lub:"lu",lug:"lg",lvs:"lv",mac:"mk",mah:"mh",mal:"ml",mao:"mi",mar:"mr",may:"ms",meg:"cir",mhr:"chm",mkd:"mk",mlg:"mg",mlt:"mt","mn-Cyrl-MN":"mn-MN",mnk:"man",mo:"ro",mol:"ro",mon:"mn",mri:"mi","ms-Latn-BN":"ms-BN","ms-Latn-MY":"ms-MY","ms-Latn-SG":"ms-SG",msa:"ms",mst:"mry",mup:"raj",mwj:"vaj",mya:"my",myd:"aog",myt:"mry",nad:"xny",nau:"na",nav:"nv",nbl:"nr",ncp:"kdz",nde:"nd",ndo:"ng",nep:"ne",nld:"nl",nno:"nn",nns:"nbr",nnx:"ngv",no:"nb","no-bok":"nb","no-BOKMAL":"nb","no-nyn":"nn","no-NYNORSK":"nn",nob:"nb",nor:"nb",npi:"ne",nts:"pij",nya:"ny",oci:"oc",ojg:"oj",oji:"oj",ori:"or",orm:"om",ory:"or",oss:"os",oun:"vaj","pa-IN":"pa-Guru-IN","pa-PK":"pa-Arab-PK",pan:"pa",pbu:"ps",pcr:"adx",per:"fa",pes:"fa",pli:"pi",plt:"mg",pmc:"huw",pmu:"phr",pnb:"lah",pol:"pl",por:"pt",ppa:"bfy",ppr:"lcq",prs:"fa-AF",pry:"prt",pus:"ps",puz:"pub",que:"qu",quz:"qu",rmy:"rom",roh:"rm",ron:"ro",rum:"ro",run:"rn",rus:"ru",sag:"sg",san:"sa",sca:"hle",scc:"sr",scr:"hr","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg",sh:"sr-Latn","shi-MA":"shi-Tfng-MA",sin:"si",skk:"oyb",slk:"sk",slo:"sk",slv:"sl",sme:"se",smo:"sm",sna:"sn",snd:"sd",som:"so",sot:"st",spa:"es",spy:"kln",sqi:"sq","sr-BA":"sr-Cyrl-BA","sr-ME":"sr-Latn-ME","sr-RS":"sr-Cyrl-RS","sr-XK":"sr-Cyrl-XK",src:"sc",srd:"sc",srp:"sr",ssw:"ss",sun:"su",swa:"sw",swc:"sw-CD",swe:"sv",swh:"sw",tah:"ty",tam:"ta",tat:"tt",tdu:"dtp",tel:"te",tgk:"tg",tgl:"fil",tha:"th",thc:"tpo",thx:"oyb",tib:"bo",tie:"ras",tir:"ti",tkk:"twm",tl:"fil",tlw:"weo",tmp:"tyj",tne:"kak",tnf:"fa-af",ton:"to",tsf:"taj",tsn:"tn",tso:"ts",ttq:"tmh",tuk:"tk",tur:"tr",tw:"ak",twi:"ak","tzm-Latn-MA":"tzm-MA","ug-Arab-CN":"ug-CN",uig:"ug",ukr:"uk",umu:"del",uok:"ema",urd:"ur","uz-AF":"uz-Arab-AF","uz-UZ":"uz-Latn-UZ",uzb:"uz",uzn:"uz","vai-LR":"vai-Vaii-LR",ven:"ve",vie:"vi",vol:"vo",wel:"cy",wln:"wa",wol:"wo",xba:"cax",xho:"xh",xia:"acn",xkh:"waw",xpe:"kpe",xsj:"suj",xsl:"den",ybd:"rki",ydd:"yi",yid:"yi",yma:"lrr",ymt:"mtm",yor:"yo",yos:"zom","yue-CN":"yue-Hans-CN","yue-HK":"yue-Hant-HK",yuu:"yug",zai:"zap","zh-CN":"zh-Hans-CN","zh-guoyu":"zh","zh-hakka":"hak","zh-HK":"zh-Hant-HK","zh-min-nan":"nan","zh-MO":"zh-Hant-MO","zh-SG":"zh-Hans-SG","zh-TW":"zh-Hant-TW","zh-xiang":"hsn","zh-min":"nan-x-zh-min",zha:"za",zho:"zh",zsm:"ms",zul:"zu",zyb:"za"},s={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","zh-Hant-MO":"zh-Hant-HK"};function c(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function u(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function l(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function d(e,t,r,n,o){var i=e[t];if(void 0!==i){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(i=Boolean(i)),"string"===r&&(i=l(i)),void 0!==n&&!n.filter(function(e){return e==i}).length)throw new RangeError(i+" is not within "+n.join(", "));return i}return o}function p(e,t,r,n){if(void 0!==e){if(e=Number(e),isNaN(e)||e<t||e>r)throw new RangeError(e+" is outside of range ["+t+", "+r+"]");return Math.floor(e)}return n}function f(e,t,r,n,o){return p(e[t],r,n,o)}function h(e){return Object.keys(a).reduce(function(t,r){return r.split("-")[0]===e&&(t[r]=a[r]),t},{})}function g(e){return Object.keys(s).reduce(function(t,r){return r.split("-")[0]===e&&(t[r]=s[r]),t},{})}function m(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function y(e,t,r){for(var n=0,o=Object.keys(r);n<o.length;n++){var i=o[n];m(e,t,i,r[i])}}function b(e,t,r){return v(e,t,r)[r]}function v(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=e.get(t);if(!o)throw new TypeError(t+" InternalSlot has not been initialized");return r.reduce(function(e,t){return e[t]=o[t],e},Object.create(null))}function w(e){return"literal"===e.type}function S(e){for(var t=[],r=e.indexOf("{"),n=0,o=0,i=e.length;r<e.length&&r>-1;)c((n=e.indexOf("}",r))>r,"Invalid pattern "+e),r>o&&t.push({type:"literal",value:e.substring(o,r)}),t.push({type:e.substring(r+1,n),value:void 0}),o=n+1,r=e.indexOf("{",o);return o<i&&t.push({type:"literal",value:e.substring(o,i)}),t}function x(e,t,r,n,o){var i=f(r,"minimumIntegerDigits",1,21,1),a=r.minimumFractionDigits,s=r.maximumFractionDigits,c=r.minimumSignificantDigits,u=r.maximumSignificantDigits;m(e,t,"minimumIntegerDigits",i),void 0!==c||void 0!==u?(m(e,t,"roundingType","significantDigits"),c=p(c,1,21,1),u=p(u,c,21,21),m(e,t,"minimumSignificantDigits",c),m(e,t,"maximumSignificantDigits",u)):void 0!==a||void 0!==s?(m(e,t,"roundingType","fractionDigits"),a=p(a,0,20,n),s=p(s,a,20,Math.max(a,o)),m(e,t,"minimumFractionDigits",a),m(e,t,"maximumFractionDigits",s)):"compact"===b(e,t,"notation")?m(e,t,"roundingType","compactRounding"):(m(e,t,"roundingType","fractionDigits"),m(e,t,"minimumFractionDigits",n),m(e,t,"maximumFractionDigits",o))}function E(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}var _=/[^A-Z]/;function O(e){return e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()}),3===e.length&&!_.test(e)}function C(e){var t=Intl.getCanonicalLocales;return"function"==typeof t?t(e):Intl.DateTimeFormat.supportedLocalesOf(e||"")}var k,A=(k=function(e,t){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},k(e,t)},function(e,t){function r(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),T=function(){return T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)};function D(e){var t=function(e){return function(t,r){for(var n={locale:""},o=0,i=r;o<i.length;o++){var a=i[o],s=a.replace(P,""),c=L(t,s);if(c)return n.locale=c,a!==s&&(n.extension=a.slice(s.length+1,a.length)),n}return n.locale=e(),n}}(e),r=function(e){return function(t,r){for(var n={locale:""},o=0,i=r;o<i.length;o++){var a=i[o],s=a.replace(P,""),c=L(t,s);if(c)return n.locale=c,a!==s&&(n.extension=a.slice(s.length+1,a.length)),n}return n.locale=e(),n}}(e);return function(e,n,o,i,a){for(var s,u=(s="lookup"===o.localeMatcher?t(e,n):r(e,n)).locale,l={locale:"",dataLocale:u},d="-u",p=0,f=i;p<f.length;p++){var h=f[p],g=a[u];c("object"==typeof g&&null!==g,"locale data "+h+" must be an object");var m=g[h];c(Array.isArray(m),"keyLocaleData for "+h+" must be an array");var y=m[0];c("string"==typeof y||null===y,"value must be string or null");var b="";if(s.extension){var v=I(s.extension,h);void 0!==v&&(""!==v?~m.indexOf(v)&&(b="-"+h+"-"+(y=v)):~v.indexOf("true")&&(y="true",b="-"+h))}if(h in o){var w=o[h];c("string"==typeof w||null==w,"optionsValue must be String, Undefined or Null"),~m.indexOf(w)&&w!==y&&(y=w,b="")}l[h]=y,d+=b}if(d.length>2){var S=u.indexOf("-x-");if(-1===S)u+=d;else{var x=u.slice(0,S),E=u.slice(S,u.length);u=x+d+E}u=C(u)[0]}return l.locale=u,l}}function I(e,t){c(2===t.length,"key must have 2 elements");var r=e.length,n="-"+t+"-",o=e.indexOf(n);if(-1!==o){for(var i=o+4,a=i,s=i,u=!1;!u;){var l=e.indexOf("-",s);2===(-1===l?r-s:l-s)?u=!0:-1===l?(a=r,u=!0):(a=l,s=l+1)}return e.slice(i,a)}if(n="-"+t,-1!==(o=e.indexOf(n))&&o+3===r)return""}var P=/-u(?:-[0-9a-z]{2,8})+/gi;function L(e,t){for(var r=t;;){if(~e.indexOf(r))return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function M(e,t,r){var n=[e];t[e]&&(e=t[e],n.push(e));var o=r[e];o&&n.push(o);for(var i=e.split("-"),a=i.length;a>1;a--)n.push(i.slice(0,a-1).join("-"));return n}function R(e,t,r){return void 0!==r&&d(r=u(r),"localeMatcher","string",["lookup","best fit"],"best fit"),function(e,t){for(var r=[],n=0,o=t;n<o.length;n++){var i=L(e,o[n].replace(P,""));i&&r.push(i)}return r}(e,t)}var j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}return A(t,e),t}(Error);function N(e){return"MISSING_LOCALE_DATA"===e.type}function F(e,t,r){void 0===r&&(r=function(e,t){return T(T({},e),t)});var n=M(e,t.aliases,t.parentLocales),o=n.map(function(e){return t.data[e]}).filter(Boolean);if(!o.length)throw new j('Missing locale data for "'+e+'", lookup hierarchy: '+n.join(", "));return o.reverse(),o.reduce(r,{})}var B,U=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function K(e){return e.replace(/^(.*?)-/,"")}!function(e){e.compactName="compactName",e.compactSymbol="compactSymbol",e.currencyCode="currencyCode",e.currencyName="currencyName",e.currencyNarrowSymbol="currencyNarrowSymbol",e.currencySymbol="currencySymbol",e.minusSign="minusSign",e.number="number",e.percentSign="percentSign",e.plusSign="plusSign",e.scientificExponent="scientificExponent",e.scientificSeparator="scientificSeparator",e.unitName="unitName",e.unitNarrowSymbol="unitNarrowSymbol",e.unitSymbol="unitSymbol"}(B||(B={}))},2505(e,t,r){e.exports=r(8015)},5592(e,t,r){var n=r(9516),o=r(7522),i=r(3948),a=r(9106),s=r(9615),c=r(2012),u=r(4202),l=r(4896),d=r(5845),p=r(8563),f=r(5656),h=r(5721);e.exports=function(e){return new Promise(function(t,r){var g,m=e.data,y=e.headers,b=e.responseType,v=n.hasOwnProperty(e,"withXSRFToken")?e.withXSRFToken:void 0;function w(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete y["Content-Type"];var S=new XMLHttpRequest,x=n.hasOwnProperty(e,"auth")?e.auth:void 0;if(x){var E=n.hasOwnProperty(x,"username")&&x.username||"",_=n.hasOwnProperty(x,"password")&&x.password?unescape(encodeURIComponent(x.password)):"";y.Authorization="Basic "+btoa(E+":"+_)}var O=s(e.baseURL,e.url,e.allowAbsoluteUrls);function C(){if(S){var n="getAllResponseHeaders"in S?c(S.getAllResponseHeaders()):null,i={data:b&&"text"!==b&&"json"!==b?S.response:S.responseText,status:S.status,statusText:S.statusText,headers:n,config:e,request:S};o(function(e){t(e),w()},function(e){r(e),w()},i),S=null}}if(S.open(e.method.toUpperCase(),a(O,e.params,n.hasOwnProperty(e,"paramsSerializer")?e.paramsSerializer:void 0),!0),S.timeout=e.timeout,"onloadend"in S?S.onloadend=C:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(C)},S.onabort=function(){S&&(r(new d("Request aborted",d.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,S)),S=null},n.isStandardBrowserEnv()&&(n.isFunction(v)&&(v=v(e)),!0===v||!1!==v&&u(O))){var k=e.xsrfHeaderName&&e.xsrfCookieName&&i.read(e.xsrfCookieName);k&&(y[e.xsrfHeaderName]=k)}"setRequestHeader"in S&&n.forEach(y,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:S.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(S.withCredentials=!!e.withCredentials),b&&"json"!==b&&(S.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&S.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&S.upload&&S.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(t){S&&(r(!t||t.type?new p(null,e,S):t),S.abort(),S=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),m||!1===m||0===m||""===m||(m=null);var A=f(O);A&&-1===h.protocols.indexOf(A)?r(new d("Unsupported protocol "+A+":",d.ERR_BAD_REQUEST,e)):S.send(m)})}},8015(e,t,r){var n=r(9516),o=r(9012),i=r(5155),a=r(5343),s=r(7412),c=r(4298),u=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(s);u.Axios=i,u.CanceledError=r(8563),u.CancelToken=r(3191),u.isCancel=r(3864),u.VERSION=r(9641).version,u.toFormData=r(6440),u.AxiosError=r(5845),u.Cancel=u.CanceledError,u.all=function(e){return Promise.all(e)},u.spread=r(7980),u.isAxiosError=r(5019),u.formToJSON=function(e){return c(n.isHTMLForm(e)?new FormData(e):e)},e.exports=u,e.exports.default=u},3191(e,t,r){var n=r(8563);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,o,i){r.reason||(r.reason=new n(e,o,i),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e,t=new o(function(t){e=t});return{token:t,cancel:e}},e.exports=o},8563(e,t,r){var n=r(5845);function o(e,t,r){n.call(this,null==e?"canceled":e,n.ERR_CANCELED,t,r),this.name="CanceledError"}r(9516).inherits(o,n,{__CANCEL__:!0}),e.exports=o},3864(e){e.exports=function(e){return!(!e||!e.__CANCEL__)}},5155(e,t,r){var n=r(9516),o=r(9106),i=r(3471),a=r(4490),s=r(5343),c=r(9615),u=r(4841),l=u.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var o=t.paramsSerializer;null!=o&&(n.isFunction(o)?t.paramsSerializer={serialize:o}:u.assertOptions(o,{encode:l.function,serialize:l.function},!0));var i=[],c=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});var d,p=[];if(this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)}),!c){var f=[a,void 0];for(Array.prototype.unshift.apply(f,i),f=f.concat(p),d=Promise.resolve(t);f.length;)d=d.then(f.shift(),f.shift());return d}for(var h=t;i.length;){var g=i.shift(),m=i.shift();try{h=g(h)}catch(e){m(e);break}}try{d=a(h)}catch(e){return Promise.reject(e)}for(;p.length;)d=d.then(p.shift(),p.shift());return d},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url,e.allowAbsoluteUrls);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],function(e){d.prototype[e]=function(t,r){var o=r||{};return this.request(s(o,{method:e,url:t,data:n.hasOwnProperty(o,"data")?o.data:void 0}))}}),n.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)}),e.exports=d},5845(e,t,r){var n=r(9516),o=r(5235);function i(e){var t=Object.create(null);return t.value=e,t}var a="[Circular]";function s(e,t,r,o){var i;return function(e,t){return"string"==typeof e&&t[e.toLowerCase()]}(r,t)?"[REDACTED ****]":n.isArray(e)?-1!==o.indexOf(e)?a:(o.push(e),i=[],n.forEach(e,function(e,r){i[r]=s(e,t,r,o)}),o.pop(),i):n.isPlainObject(e)?-1!==o.indexOf(e)?a:(o.push(e),i={},n.forEach(e,function(e,r){i[r]=s(e,t,r,o)}),o.pop(),i):e}function c(e){return e?s(e,function(e){var t=(e&&n.isArray(e.redact)&&e.redact.length?e.redact:null)||o,r={};return n.forEach(t,function(e){"string"==typeof e&&(r[e.toLowerCase()]=!0)}),r}(e),void 0,[]):e}function u(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(u,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var l=u.prototype,d=Object.create(null);["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL","ERR_FORM_DATA_DEPTH_EXCEEDED"].forEach(function(e){d[e]=i(e)}),Object.defineProperties(u,d),Object.defineProperty(l,"isAxiosError",i(!0)),u.from=function(e,t,r,o,i,a){var s=Object.create(l);return n.toFlatObject(e,s,function(e){return e!==Error.prototype}),u.call(s,e.message,t,r,o,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s},e.exports=u},3471(e,t,r){var n=r(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.clear=function(){this.handlers&&(this.handlers=[])},o.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},9615(e,t,r){var n=r(9137),o=r(4680);e.exports=function(e,t,r){var i=!n(t);return e&&(i||!1===r)?o(e,t):t}},4490(e,t,r){var n=r(9516),o=r(2881),i=r(3864),a=r(7412),s=r(8563),c=r(7018),u=r(5380);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,null,e.transformRequest),c(e.headers,"Accept"),c(e.headers,"Content-Type");var t=n.hasOwnProperty(e.headers,"common")&&e.headers.common?e.headers.common:{},r=e.method&&n.hasOwnProperty(e.headers,e.method)&&e.headers[e.method]?e.headers[e.method]:{};return e.headers=n.merge(t,r,e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),n.forEach(e.headers,function(t,r){e.headers[r]=u(t)}),(e.adapter||a.adapter)(e).then(function(t){return l(e),t.data=o.call(e,t.data,t.headers,t.status,e.transformResponse),t},function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)})}},5343(e,t,r){var n=r(9516);e.exports=function(e,t){t=t||{};var r=Object.create(null);function o(e,t){return n.hasOwnProperty(e,t)?e[t]:void 0}function i(e,t){return n.hasOwnProperty(e,t)}function a(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isEmptyObject(t)?n.merge({},e):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function s(r){return i(t,r)&&!n.isUndefined(t[r])?a(o(e,r),t[r]):i(e,r)&&!n.isUndefined(e[r])?a(void 0,e[r]):void 0}function c(e){if(i(t,e)&&!n.isUndefined(t[e]))return a(void 0,t[e])}function u(r){return i(t,r)&&!n.isUndefined(t[r])?a(void 0,t[r]):i(e,r)&&!n.isUndefined(e[r])?a(void 0,e[r]):void 0}function l(r){return i(t,r)?a(o(e,r),t[r]):i(e,r)?a(void 0,e[r]):void 0}var d={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),function(e){if("__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var t=n.hasOwnProperty(d,e)?d[e]:s,o=t(e);n.isUndefined(o)&&t!==l||(r[e]=o)}}),r}},7522(e,t,r){var n=r(5845);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},2881(e,t,r){var n=r(9516),o=r(7412);e.exports=function(e,t,r,i){var a=this||o;return n.forEach(i,function(n){e=n.call(a,e,t,r)}),e}},7412(e,t,r){var n=r(9516),o=r(7018),i=r(5845),a=r(4896),s=r(6440),c=r(6069),u=r(5721),l=r(4298),d=r(5235),p={"Content-Type":"application/x-www-form-urlencoded"};function f(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h,g={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(h=r(5592)),h),transformRequest:[function(e,t){o(t,"Accept"),o(t,"Content-Type");var r,i=t&&t["Content-Type"]||"",a=i.indexOf("application/json")>-1,u=n.isObject(e);if(u&&n.isHTMLForm(e)&&(e=new FormData(e)),n.isFormData(e))return a?JSON.stringify(l(e)):e;if(n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return f(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(u){var d=n.hasOwnProperty(this,"formSerializer")?this.formSerializer:void 0,p=n.hasOwnProperty(this,"env")?this.env:void 0;if(-1!==i.indexOf("application/x-www-form-urlencoded"))return c(e,d).toString();if((r=n.isFileList(e))||i.indexOf("multipart/form-data")>-1){var h=p&&p.FormData;return s(r?{"files[]":e}:e,h&&new h,d)}}return u||a?(f(t,"application/json"),function(e){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||g.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&n.isString(e)&&(r&&!this.responseType||o)){var a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,redact:d.slice(),env:{FormData:u.classes.FormData,Blob:u.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){g.headers[e]={}}),n.forEach(["post","put","patch"],function(e){g.headers[e]=n.merge(p)}),e.exports=g},4896(e){e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},786(e,t,r){e.exports=r(1894)},9641(e){e.exports={version:"0.33.0"}},170(e,t,r){var n=r(6440);function o(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20/g,function(e){return t[e]})}function i(e,t){this._pairs=[],e&&n(e,this,t)}var a=i.prototype;a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(e){var t=e?function(t){return e.call(this,t,o)}:o;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},e.exports=i},9012(e){e.exports=function(e,t){return function(){return e.apply(t,arguments)}}},9106(e,t,r){var n=r(9516),o=r(170);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a));var s,c,u=i;return r&&(n.isFunction(r)?s=r:(u=n.hasOwnProperty(r,"encode")&&r.encode||i,s=n.hasOwnProperty(r,"serialize")?r.serialize:void 0)),(c=s?s(t,r):n.isURLSearchParams(t)?t.toString():new o(t,r).toString(u))&&(e+=(-1===e.indexOf("?")?"?":"&")+c),e}},4680(e){e.exports=function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}},3948(e,t,r){var n=r(9516);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){for(var t,r=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(t=n[o];" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(r))return decodeURIComponent(t.substring(r.length))}return null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},5235(e){e.exports=["authorization","proxy-authorization","cookie","set-cookie","x-api-key","password"]},4298(e,t,r){var n=r(9516),o=r(5845);e.exports=function(e){function t(e,r,o,i){var a=e[i++];if("__proto__"===a)return!0;var s=Number.isFinite(+a),c=i>=e.length;return a=!a&&n.isArray(o)?o.length:a,c?(n.hasOwnProperty(o,a)?o[a]=[o[a],r]:o[a]=r,!s):(o[a]&&n.isObject(o[a])||(o[a]=[]),t(e,r,o[a],i)&&n.isArray(o[a])&&(o[a]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(o[a])),!s)}if(n.isFormData(e)&&n.isFunction(e.entries)){var r={};return n.forEachEntry(e,function(e,i){var a=function(e){return n.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}(e);!function(e){var t=e.length-1;if(t>100)throw new o("Maximum object depth of 100 exceeded (got "+t+" levels)",o.ERR_FORM_DATA_DEPTH_EXCEEDED)}(a),t(a,i,r,0)}),r}return null}},9137(e){e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5019(e,t,r){var n=r(9516);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},4202(e,t,r){var n=r(9516);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},7018(e,t,r){var n=r(9516);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},2012(e,t,r){var n=r(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=n.trim(e.slice(0,i)).toLowerCase(),r=n.trim(e.slice(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},5656(e){e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5380(e,t,r){var n=r(9516),o=/[^\x09\x20-\x7E\x80-\xFF]/g,i=/^[\x09\x20]+|[\x09\x20]+$/g;e.exports=function e(t){return!1===t||null==t?t:n.isArray(t)?t.map(e):String(t).replace(o,"").replace(i,"")}},7980(e){e.exports=function(e){return function(t){return e.apply(null,t)}}},6440(e,t,r){var n=r(9516),o=r(5845),i=r(786);function a(e){return n.isPlainObject(e)||n.isArray(e)}function s(e){return n.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,r){return e?e.concat(t).map(function(e,t){return e=s(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}var u=n.toFlatObject(n,{},null,function(e){return/^is[A-Z]/.test(e)});e.exports=function(e,t,r){if(!n.isObject(e))throw new TypeError("target must be an object");t=t||new(i||FormData);var l,d=(r=n.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!n.isUndefined(t[e])})).metaTokens,p=r.visitor||S,f=r.dots,h=r.indexes,g=r.Blob||"undefined"!=typeof Blob&&Blob,m=void 0===r.maxDepth?100:r.maxDepth,y=g&&(l=t)&&n.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];if(!n.isFunction(p))throw new TypeError("visitor must be a function");function b(e){if(null===e)return"";if(n.isDate(e))return e.toISOString();if(!y&&n.isBlob(e))throw new o("Blob is not supported. Use a Buffer instead.");return n.isArrayBuffer(e)||n.isTypedArray(e)?y&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}var v=[];function w(e,t){if(t>m)throw new o("Maximum object depth of "+m+" exceeded (got "+t+" levels)",o.ERR_FORM_DATA_DEPTH_EXCEEDED);n.isObject(e)&&-1===v.indexOf(e)&&(v.push(e),n.forEach(e,function(e){w(e,t+1)}),v.pop())}function S(e,r,o){var i=e;if(e&&!o&&"object"==typeof e)if(n.endsWith(r,"{}"))r=d?r:r.slice(0,-2),w(e,1),e=JSON.stringify(e);else if(n.isArray(e)&&function(e){return n.isArray(e)&&!e.some(a)}(e)||n.isFileList(e)||n.endsWith(r,"[]")&&(i=n.toArray(e)))return r=s(r),i.forEach(function(e,o){!n.isUndefined(e)&&null!==e&&t.append(!0===h?c([r],o,f):null===h?r:r+"[]",b(e))}),!1;return!!a(e)||(t.append(c(o,r,f),b(e)),!1)}var x=Object.assign(u,{defaultVisitor:S,convertValue:b,isVisitable:a});if(!n.isObject(e))throw new TypeError("data must be an object");return function e(r,i,a){if(!n.isUndefined(r)){if((a=a||0)>m)throw new o("Maximum object depth of "+m+" exceeded (got "+a+" levels)",o.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==v.indexOf(r))throw Error("Circular reference detected in "+i.join("."));v.push(r),n.forEach(r,function(r,o){!0===(!(n.isUndefined(r)||null===r)&&p.call(t,r,n.isString(o)?o.trim():o,i,x))&&e(r,i?i.concat(o):[o],a+1)}),v.pop()}}(e,null,0),t}},6069(e,t,r){var n=r(9516),o=r(6440),i=r(5721);e.exports=function(e,t){return o(e,new i.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return i.isNode&&n.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}},4841(e,t,r){var n=r(9641).version,o=r(5845),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var c=e[a],u=void 0===c||s(c,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},243(e){e.exports=FormData},2002(e,t,r){var n=r(170);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:n},9490(e,t,r){e.exports={isBrowser:!0,classes:{URLSearchParams:r(2002),FormData:r(243),Blob},protocols:["http","https","file","blob","url","data"]}},5721(e,t,r){e.exports=r(9490)},9516(e,t,r){var n,o=r(9012),i=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var l=s("ArrayBuffer");function d(e){return"number"==typeof e}function p(e){return null!==e&&"object"==typeof e}function f(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),g=s("File"),m=s("Blob"),y=s("FileList");function b(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function w(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var S,x,E=(S="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return S&&e instanceof S}),_=s("HTMLFormElement"),O=(x=Object.prototype.hasOwnProperty,function(e,t){return x.call(e,t)});e.exports={isArray:c,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";if(!e)return!1;if("function"==typeof FormData&&e instanceof FormData)return!0;if(!p(e))return!1;var r=Object.getPrototypeOf(e);return!(!r||r===Object.prototype)&&!!b(e.append)&&(i.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:d,isObject:p,isPlainObject:f,isEmptyObject:function(e){if(!f(e))return!1;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},isUndefined:u,isDate:h,isFile:g,isBlob:m,isFunction:b,isStream:function(e){return p(e)&&b(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t=Object.create(null);function r(r,n){var o;"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(f(o=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0)&&f(r)?t[n]=e(o,r):f(r)?t[n]=e({},r):c(r)?t[n]=r.slice():t[n]=r)}for(var n=0,o=arguments.length;n<o;n++)w(arguments[n],r);return t},extend:function(e,t,r){return w(t,function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!d(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:E,isFileList:y,forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:_,hasOwnProperty:O}},2485(e,t){var r;!function(){var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},5889(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(5748),a=r(3018),s=r(6840),c=r(5224),u=r(9938),l=r(2242),d=r(6991),p=r(7282),f=r(9404),h=r(6059),g=p("draft_tree_data_support"),m=g?c:s,y=f.List,b=f.Repeat,v={insertAtomicBlock:function(e,t,r){var o=e.getCurrentContent(),s=e.getSelection(),c=u.removeRange(o,s,"backward"),p=c.getSelectionAfter(),f=u.splitBlock(c,p),h=f.getSelectionAfter(),v=u.setBlockType(f,h,"atomic"),w=a.create({entity:t}),S={key:d(),type:"atomic",text:r,characterList:y(b(w,r.length))},x={key:d(),type:"unstyled"};g&&(S=n({},S,{nextSibling:x.key}),x=n({},x,{prevSibling:S.key}));var E=[new m(S),new m(x)],_=i.createFromArray(E),O=u.replaceWithFragment(v,h,_),C=O.merge({selectionBefore:s,selectionAfter:O.getSelectionAfter().set("hasFocus",!0)});return l.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,r,n){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===n||"after"===n){var s=i.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());o=h(i,t,s,n)}else{var c=u.removeRange(i,r,"backward"),d=c.getSelectionAfter(),p=c.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())o=h(c,t,p,"before");else if(d.getEndOffset()===p.getLength())o=h(c,t,p,"after");else{var f=u.splitBlock(c,d),g=f.getSelectionAfter(),m=f.getBlockForKey(g.getFocusKey());o=h(f,t,m,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(e,y,"move-block")}};e.exports=v},5748(e,t,r){var n=r(9404).OrderedMap,o={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}};e.exports=o},9981(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(8227),i=r(679),a=r(9404),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},d=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(e,t,r){var n=t.getLength();if(!n)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new d({start:0,end:0}))}));var i=[],a=r?r.getDecorations(t,e):s(c(null,n)),u=t.getCharacterList();return o(a,h,l,function(e,t){var r,n,c,f;i.push(new p({start:e,end:t,decoratorKey:a.get(e),leaves:(r=u.slice(e,t).toList(),n=e,c=[],f=r.map(function(e){return e.getStyle()}).toList(),o(f,h,l,function(e,t){c.push(new d({start:e+n,end:t+n}))}),s(c))}))}),s(i)},fromJS:function(e){var t=e.leaves,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["leaves"]);return new p(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},r,{leaves:null!=t?s(Array.isArray(t)?t:i(t)).map(function(e){return d(e)}):null}))}};function h(e,t){return e===t}e.exports=f},3018(e,t,r){var n=r(9404),o=n.Map,i=n.OrderedSet,a=n.Record,s=i(),c={style:s,entity:null},u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},n.applyStyle=function(e,t){var r=e.set("style",e.getStyle().add(t));return n.create(r)},n.removeStyle=function(e,t){var r=e.set("style",e.getStyle().remove(t));return n.create(r)},n.applyEntity=function(e,t){var r=e.getEntity()===t?e:e.set("entity",t);return n.create(r)},n.create=function(e){if(!e)return l;var t=o({style:s,entity:null}).merge(e),r=d.get(t);if(r)return r;var i=new n(t);return d=d.set(t,i),i},n.fromJS=function(e){var t=e.style,r=e.entity;return new n({style:Array.isArray(t)?i(t):t,entity:Array.isArray(r)?i(r):r})},n}(a(c)),l=new u,d=o([[o(c),l]]);u.EMPTY=l,e.exports=u},9083(e,t,r){var n=r(9404).List,o=function(){function e(e){var t,r;r=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var r=Array(e.getText().length).fill(null);return this._decorators.forEach(function(n,o){var i=0;(0,n.strategy)(e,function(e,t){(function(e,t,r){for(var n=t;n<r;n++)if(null!=e[n])return!1;return!0})(r,e,t)&&(function(e,t,r,n){for(var o=t;o<r;o++)e[o]=n}(r,e,t,o+"."+i),i++)},t)}),n(r)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},6840(e,t,r){var n=r(3018),o=r(8227),i=r(9404),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,d=c(),p=function(e){var t,r;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(t))||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function f(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=p},5224(e,t,r){var n=r(3018),o=r(8227),i=r(9404),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,d=c(),p={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},f=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,r;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=a(l(n.EMPTY,r.length))),e}(t))||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(u(p));e.exports=g},7656(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(5748),a=r(3018),s=r(6840),c=r(5224),u=r(1608),l=r(1381),d=r(6991),p=r(679),f=r(7282),h=r(9404),g=r(1721),m=h.List,y=h.Record,b=h.Repeat,v=h.Map,w=h.OrderedMap,S=y({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),x=f("draft_tree_data_support")?c:s,E=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var s=o.prototype;return s.getEntityMap=function(){return u},s.getBlockMap=function(){return this.get("blockMap")},s.getSelectionBefore=function(){return this.get("selectionBefore")},s.getSelectionAfter=function(){return this.get("selectionAfter")},s.getBlockForKey=function(e){return this.getBlockMap().get(e)},s.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},s.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},s.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,r){return r===e}).skip(1).first()},s.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,r){return r===e}).skip(1).first()},s.getBlocksAsArray=function(){return this.getBlockMap().toArray()},s.getFirstBlock=function(){return this.getBlockMap().first()},s.getLastBlock=function(){return this.getBlockMap().last()},s.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},s.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},s.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,r){return u.__create(e,t,r),this},s.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},s.addEntity=function(e){return u.__add(e),this},s.getEntity=function(e){return u.__get(e)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(e){return u.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,n=i.createFromArray(r),a=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new o({blockMap:n,entityMap:t||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(t).map(function(e){return e=g(e),new x({key:d(),text:e,type:"unstyled",characterList:m(b(a.EMPTY,e.length))})});return o.createFromBlockArray(r)},o.fromJS=function(e){return new o(n({},e,{blockMap:w(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new l(e.selectionBefore),selectionAfter:new l(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new x(n({},e,{data:v(e.data),characterList:null!=t?m((Array.isArray(t)?t:p(t)).map(function(e){return a.fromJS(e)})):void 0}))},o}(S);e.exports=E},4092(e,t,r){var n=r(3018),o=r(9404).Map,i={add:function(e,t,r){return a(e,t,r,!0)},remove:function(e,t,r){return a(e,t,r,!1)}};function a(e,t,r,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),d=a.skipUntil(function(e,t){return t===s}).takeUntil(function(e,t){return t===u}).concat(o([[u,a.get(u)]])).map(function(e,t){var o,a;s===u?(o=c,a=l):(o=t===s?c:0,a=t===u?l:e.getLength());for(var d,p=e.getCharacterList();o<a;)d=p.get(o),p=p.set(o,i?n.applyStyle(d,r):n.removeStyle(d,r)),o++;return e.set("characterList",p)});return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}e.exports=i},7378(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(4134),i=r(8372),a=r(5389),s=r(9404),c=r(646),u=r(6408),l=s.Map,d={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),f=function(){function e(e){var t=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=e,this.mutations=l();var r=a(e);r.MutationObserver&&!p?this.observer=new r.MutationObserver(function(e){return t.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,d):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,r=e.target,n=e.removedNodes;if("characterData"===t){if(""!==r.textContent)return p?r.textContent.replace("\n",""):r.textContent}else if("childList"===t){if(n&&n.length)return"";if(""!==r.textContent)return r.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var r=u(i(e.target));this.mutations=this.mutations.set(r,t)}},e}();e.exports=f},3387(e,t,r){var n=r(2015),o=r(8003),i=(0,r(9404).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:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},7918(e){e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},5143(e,t,r){var n=r(5889),o=r(5748),i=r(3018),a=r(9083),s=r(6840),c=r(7656),u=r(3387),l=r(7918),d=r(3299),p=r(1124),f=r(1608),h=r(9938),g=r(5407),m=r(2242),y=r(9414),b=r(6429),v=r(4637),w=r(1381),S=r(7470),x=r(428),E=r(6991),_=r(7811),O=r(894),C={Editor:d,EditorBlock:p,EditorState:m,CompositeDecorator:a,Entity:f,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,RawDraftContentState:b,SelectionState:w,AtomicBlockUtils:n,KeyBindingUtil:y,Modifier:h,RichUtils:v,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:r(4712),convertFromRaw:x,convertToRaw:S,genKey:E,getDefaultKeyBinding:_,getVisibleSelectionRect:O};e.exports=C},3299(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){s(e,t,r[t])})}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=r(3387),l=r(7918),d=r(755),p=r(9777),f=r(2474),h=r(7784),g=r(4576),m=r(7503),y=r(3334),b=r(2242),v=r(2015),w=r(3529),S=r(2935),x=r(4134),E=r(8003),_=r(6991),O=r(7811),C=r(7392),k=r(7282),A=r(646),T=r(5291),D=r(6408),I=x.isBrowser("IE"),P=!I,L={edit:h,composite:d,drag:f,cut:null,render:null},M=!1,R=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var r=t.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(v.Component),j=function(e){function t(t){var r;return s(a(r=e.call(this,t)||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(e){r.editorContainer=e,r.editor=null!==e?e.firstChild:null}),s(a(r),"focus",function(e){var t=r.props.editorState,n=t.getSelection().getHasFocus(),o=r.editor;if(o){var i=S.getScrollParent(o),a=e||C(i),s=a.x,c=a.y;T(o)||A(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),n||r.update(b.forceSelection(t,t.getSelection()))}}),s(a(r),"blur",function(){var e=r.editor;e&&(T(e)||A(!1),e.blur())}),s(a(r),"setMode",function(e){var t=r.props,n=t.onPaste,o=t.onCut,a=t.onCopy,s=i({},L.edit);n&&(s.onPaste=n),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},L,{edit:s});r._handler=c[e]}),s(a(r),"exitCurrentMode",function(){r.setMode("edit")}),s(a(r),"restoreEditorDOM",function(e){r.setState({contentsKey:r.state.contentsKey+1},function(){r.focus(e)})}),s(a(r),"setClipboard",function(e){r._clipboard=e}),s(a(r),"getClipboard",function(){return r._clipboard}),s(a(r),"update",function(e){r._latestEditorState=e,r.props.onChange(e)}),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=t.editorKey||_(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=t.editorState,r._latestCommittedEditorState=t.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}c(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(r){if(!t.props.readOnly){var n=t._handler&&t._handler[e];n&&(g?g(function(){return n(t,r)}):n(t,r))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:D(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return v.createElement(m,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,n=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,c=e.editorState,u=e.preventScroll,d=e.readOnly,f=e.textAlignment,h=e.textDirectionality,g=E({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===f,"DraftEditor/alignRight":"right"===f,"DraftEditor/alignCenter":"center"===f}),m=this.props.role||"textbox",y="combobox"===m?!!this.props.ariaExpanded:null,b={blockRenderMap:t,blockRendererFn:r,blockStyleFn:n,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return v.createElement("div",{className:g},this._renderPlaceholder(),v.createElement("div",{className:E("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},v.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":d?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":d?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:E({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"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:d?null:m,spellCheck:P&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},v.createElement(R,{editor:this,editorState:c}),v.createElement(p,o({},b,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!M&&k("draft_ods_enabled")&&(M=!0,y.initODS()),this.setMode("edit"),I&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):globalThis.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(v.Component);s(j,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:O,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=j},1124(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var i=r(5203),a=r(3885),s=r(2015),c=r(3529),u=r(2935),l=r(8307),d=r(5822),p=r(8003),f=r(8527),h=r(7392),g=r(1401),m=r(646),y=r(5291),b=r(6408),v=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},w=function(e){var t,r;function n(){for(var t,r,n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(n="_node")in(r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var w=n.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||v(e.selection,e.block.getKey())&&e.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var r=this._node;if(null!=r){var n,o=u.getScrollParent(r),i=h(o);if(o===window){var a=f(r);(n=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+n+10)}else y(r)||m(!1),(n=r.offsetHeight+r.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+n+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,r=t.getKey(),n=t.getText(),c=this.props.tree.size-1,u=v(this.props.selection,r);return this.props.tree.map(function(p,f){var h=p.get("leaves");if(0===h.size)return null;var g=h.size-1,m=h.map(function(o,l){var d=a.encode(r,f,l),p=o.get("start"),h=o.get("end");return s.createElement(i,{key:d,offsetKey:d,block:t,start:p,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:n.slice(p,h),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===c&&l===g})}).toArray(),y=p.get("decoratorKey");if(null==y)return m;if(!e.props.decorator)return m;var v=b(e.props.decorator),w=v.getComponentForKey(y);if(!w)return m;var S=v.getPropsForKey(y),x=a.encode(r,f,0),E=h.first().get("start"),_=h.last().get("end"),O=n.slice(E,_),C=t.getEntityAt(p.get("start")),k=d.getHTMLDirIfDifferent(l.getDirection(O),e.props.direction),A={contentState:e.props.contentState,decoratedText:O,dir:k,start:E,end:_,blockKey:r,entityKey:C,offsetKey:x};return s.createElement(w,o({},S,A,{key:x}),m)}).toArray()},w.render=function(){var e=this,t=this.props,r=t.direction,n=t.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return s.createElement("div",{"data-offset-key":n,className:o,ref:function(t){return e._node=t}},this._renderChildren())},n}(s.Component);e.exports=w},2784(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){a(e,t,r[t])})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(4379),c=r(3885),u=r(2015),l=r(3529),d=r(2935),p=r(8527),f=r(7392),h=r(1401),g=r(9404),m=r(646),y=r(5291),b=(g.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),v=function(e,t){var r=t.get(e.getType())||t.get("unstyled"),n=r.wrapper;return{Element:r.element||t.get("unstyled").element,wrapperTemplate:n}},w=function(e,t){var r=t(e);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},S=function(e,t,r,n,o,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},c=n(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=i({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},x=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(n))||this),"wrapperRef",u.createRef()),t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var g=n.prototype;return g.shouldComponentUpdate=function(e){var t=this.props,r=t.block,n=t.direction,o=t.tree,i=!r.getChildKeys().isEmpty(),a=r!==e.block||o!==e.tree||n!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection;return i||a},g.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var r=this.wrapperRef.current;if(r){var n,o=d.getScrollParent(r),i=f(o);if(o===window){var a=p(r);(n=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+n+10)}else{y(r)||m(!1);var s=r;(n=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+n+10)}}}},g.render=function(){var e=this,t=this.props,r=t.block,a=t.blockRenderMap,l=t.blockRendererFn,d=t.blockStyleFn,p=t.contentState,f=t.decorator,h=t.editorKey,g=t.editorState,m=t.customStyleFn,y=t.customStyleMap,x=t.direction,E=t.forceSelection,_=t.selection,O=t.tree,C=null;r.children.size&&(C=r.children.reduce(function(t,r){var o=c.encode(r,0,0),s=p.getBlockForKey(r),f=w(s,l),m=f.CustomComponent||n,y=v(s,a),b=y.Element,x=y.wrapperTemplate,E=S(s,h,o,d,f,null),_=i({},e.props,{tree:g.getBlockTree(r),blockProps:f.customProps,offsetKey:o,block:s});return t.push(u.createElement(b,E,u.createElement(m,_))),!x||function(e,t){var r=e.getNextSiblingKey();return!!r&&t.getBlockForKey(r).getType()===e.getType()}(s,p)||function(e,t,r){var n=[],o=!0,i=!1,a=void 0;try{for(var s,l=r.reverse()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var d=s.value;if(d.type!==t)break;n.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var p=n.reverse(),f=p[0].key;r.push(u.cloneElement(e,{key:"".concat(f,"-wrap"),"data-offset-key":c.encode(f,0,0)},p))}(x,b,t),t},[]));var k=r.getKey(),A=c.encode(k,0,0),T=w(r,l),D=T.CustomComponent,I=null!=D?u.createElement(D,o({},this.props,{tree:g.getBlockTree(k),blockProps:T.customProps,offsetKey:A,block:r})):u.createElement(s,{block:r,children:C,contentState:p,customStyleFn:m,customStyleMap:y,decorator:f,direction:x,forceSelection:E,hasSelection:b(_,k),selection:_,tree:O});if(r.getParentKey())return I;var P=v(r,a).Element,L=S(r,h,A,d,T,this.wrapperRef);return u.createElement(P,L,I)},n}(u.Component);e.exports=x},755(e,t,r){var n=r(7378),o=r(9938),i=r(3885),a=r(2242),s=r(5852),c=r(4134),u=r(6207),l=r(3564),d=r(120),p=r(9927),f=r(6408),h=c.isBrowser("IE"),g=!1,m=!1,y=null,b={onCompositionStart:function(e){m=!0,function(e){y||(y=new n(l(e))).start()}(e)},onCompositionEnd:function(e){g=!1,m=!1,setTimeout(function(){g||b.resolveComposition(e)},20)},onSelect:u,onKeyDown:function(e,t){if(!m)return b.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!m){var t=f(y).stopAndFlushMutations();y=null,g=!0;var r=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var n=r.getCurrentContent();t.forEach(function(e,t){var s=i.decode(t),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,d=r.getBlockTree(c).getIn([u,"leaves",l]),f=d.start,h=d.end,g=r.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:f,focusOffset:h,isBackward:!1}),m=p(n,g),y=n.getBlockForKey(c).getInlineStyleAt(f);n=o.replaceText(n,g,e,y,m),r=a.set(r,{currentContent:n})});var s=d(r,l(e)).selectionState;e.restoreEditorDOM();var c=h?a.forceSelection(r,s):a.acceptSelection(r,s);e.update(a.push(c,n,"insert-characters"))}else e.update(r)}}};e.exports=b},3659(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){a(e,t,r[t])})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=r(1124),c=r(3885),u=r(2015),l=r(8003),d=r(798),p=r(6408),f=function(e,t,r,n){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":r,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===n,"public/DraftStyleDefault/listRTL":"RTL"===n})},h=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,r=e.editorState;if(t.getDirectionMap()!==r.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=r.isInCompositionMode();if(t===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=t.getCurrentContent(),s=r.getCurrentContent(),c=t.getDecorator(),u=r.getDecorator();return o!==i||a!==s||c!==u||r.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,n=e.blockStyleFn,a=e.customStyleMap,l=e.customStyleFn,h=e.editorState,g=e.editorKey,m=e.preventScroll,y=e.textDirectionality,b=h.getCurrentContent(),v=h.getSelection(),w=h.mustForceSelection(),S=h.getDecorator(),x=p(h.getDirectionMap()),E=b.getBlocksAsArray(),_=[],O=null,C=null,k=0;k<E.length;k++){var A=E[k],T=A.getKey(),D=A.getType(),I=r(A),P=void 0,L=void 0,M=void 0;I&&(P=I.component,L=I.props,M=I.editable);var R=y||x.get(T),j=c.encode(T,0,0),N={contentState:b,block:A,blockProps:L,blockStyleFn:n,customStyleMap:a,customStyleFn:l,decorator:S,direction:R,forceSelection:w,offsetKey:j,preventScroll:m,selection:v,tree:h.getBlockTree(T)},F=t.get(D)||t.get("unstyled"),B=F.wrapper,U=F.element||t.get("unstyled").element,K=A.getDepth(),H="";n&&(H=n(A)),"li"===U&&(H=d(H,f(D,K,C!==B||null===O||K>O,R)));var z=P||s,V={className:H,"data-block":!0,"data-editor":g,"data-offset-key":j,key:T};void 0!==M&&(V=i({},V,{contentEditable:M,suppressContentEditableWarning:!0}));var q=u.createElement(U,V,u.createElement(z,o({},N,{key:T})));_.push({block:q,wrapperTemplate:B,key:T,offsetKey:j}),O=B?A.getDepth():null,C=B}for(var G=[],W=0;W<_.length;){var $=_[W];if($.wrapperTemplate){var Y=[];do{Y.push(_[W].block),W++}while(W<_.length&&_[W].wrapperTemplate===$.wrapperTemplate);var X=u.cloneElement($.wrapperTemplate,{key:$.key+"-wrap","data-offset-key":$.offsetKey},Y);G.push(X)}else G.push($.block),W++}return u.createElement("div",{"data-contents":"true"},G)},n}(u.Component);e.exports=h},9777(e,t,r){var n=r(7282)("draft_tree_data_support");e.exports=r(n?1803:3659)},1803(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var i=r(2784),a=r(3885),s=r(2015),c=r(6408),u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var u=n.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,r=e.editorState;if(t.getDirectionMap()!==r.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=r.isInCompositionMode();if(t===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=t.getCurrentContent(),s=r.getCurrentContent(),c=t.getDecorator(),u=r.getDecorator();return o!==i||a!==s||c!==u||r.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,r=e.blockRendererFn,n=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,d=e.editorState,p=e.editorKey,f=e.textDirectionality,h=d.getCurrentContent(),g=d.getSelection(),m=d.mustForceSelection(),y=d.getDecorator(),b=c(d.getDirectionMap()),v=[],w=h.getBlocksAsArray()[0];w;){var S=w.getKey(),x={blockRenderMap:t,blockRendererFn:r,blockStyleFn:n,contentState:h,customStyleFn:l,customStyleMap:u,decorator:y,editorKey:p,editorState:d,forceSelection:m,selection:g,block:w,direction:f||b.get(S),tree:d.getBlockTree(S)},E=(t.get(w.getType())||t.get("unstyled")).wrapper;v.push({block:s.createElement(i,o({key:S},x)),wrapperTemplate:E,key:S,offsetKey:a.encode(S,0,0)});var _=w.getNextSiblingKey();w=_?h.getBlockForKey(_):null}for(var O=[],C=0;C<v.length;){var k=v[C];if(k.wrapperTemplate){var A=[];do{A.push(v[C].block),C++}while(C<v.length&&v[C].wrapperTemplate===k.wrapperTemplate);var T=s.cloneElement(k.wrapperTemplate,{key:k.key+"-wrap","data-offset-key":k.offsetKey},A);O.push(T)}else O.push(k.block),C++}return s.createElement("div",{"data-contents":"true"},O)},n}(s.Component);e.exports=u},1988(e,t,r){var n=r(5228);function o(){return o=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}var i=r(3885),a=r(2015),s=r(8307),c=r(5822),u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.render=function(){var e=this.props,t=e.block,r=e.children,n=e.contentState,u=e.decorator,l=e.decoratorKey,d=e.direction,p=e.leafSet,f=e.text,h=t.getKey(),g=p.get("leaves"),m=u.getComponentForKey(l),y=u.getPropsForKey(l),b=i.encode(h,parseInt(l,10),0),v=f.slice(g.first().get("start"),g.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(v),d);return a.createElement(m,o({},y,{contentState:n,decoratedText:v,dir:w,key:b,entityKey:t.getEntityAt(p.get("start")),offsetKey:b}),r)},n}(a.Component);e.exports=u},2474(e,t,r){var n=r(2395),o=r(9938),i=r(2242),a=r(8372),s=r(9677),c=r(723),u=r(9450),l=r(5389),d=r(3680),p=r(6408),f={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var r=new n(t.nativeEvent.dataTransfer),l=e._latestEditorState,f=function(e,t){var r=null,n=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);r=i.startContainer,n=i.startOffset}else{if(!e.rangeParent)return null;r=e.rangeParent,n=e.rangeOffset}r=p(r),n=p(n);var c=p(a(r));return u(t,c,n,c,n)}(t.nativeEvent,l);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=f){var m=r.getFiles();if(m.length>0){if(e.props.handleDroppedFiles&&d(e.props.handleDroppedFiles(f,m)))return;c(m,function(t){t&&e.update(g(l,f,t))})}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&d(e.props.handleDrop(f,r,y))||(e._internalDrag?e.update(function(e,t){var r=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,r,"insert-fragment")}(l,f)):e.update(g(l,f,r.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var r=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(r)}}function g(e,t,r){var n=o.insertText(e.getCurrentContent(),t,r,e.getCurrentInlineStyle());return i.push(e,n,"insert-fragment")}e.exports=f},7784(e,t,r){var n=r(4134),o=r(3722),i=r(8058),a=r(7141),s=r(3694),c=r(3919),u=r(6127),l=r(4861),d=r(4447),p=r(5091),f=r(8136),h=r(2208),g=r(6207),m=n.isBrowser("Chrome"),y=n.isBrowser("Firefox"),b=m||y?g:function(e){},v={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:d,onInput:p,onKeyDown:f,onPaste:h,onSelect:g,onMouseUp:b,onKeyUp:b};e.exports=v},4576(e,t,r){var n=r(2326).unstable_flushControlled;e.exports=n},5203(e,t,r){var n=r(5228),o=r(6268),i=r(2015),a=r(646),s=r(2623),c=r(4660).setDraftEditorSelection,u=function(e){var t,r;function u(){for(var t,r,n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(n="leaf")in(r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,t}r=e,(t=u).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=u.prototype;return l._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,r=t.block,n=t.start,o=t.text,i=r.getKey(),u=n+o.length;if(e.hasEdgeWithin(i,n,u)){var l=this.leaf;l||a(!1);var d,p=l.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?d=p:s(p)?d=l:(d=p.firstChild)||a(!1),c(e,d,i,n,u)}}},l.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},l.componentDidUpdate=function(){this._setSelection()},l.componentDidMount=function(){this._setSelection()},l.render=function(){var e=this,t=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var a=this.props,s=a.customStyleMap,c=a.customStyleFn,u=a.offsetKey,l=a.styleSet,d=l.reduce(function(e,t){var r={},o=s[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(r.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),n(e,o,r)},{});if(c){var p=c(l,t);d=n(d,p)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:d},i.createElement(o,null,r))},u}(i.Component);e.exports=u},4379(e,t,r){var n=r(1988),o=r(5203),i=r(3885),a=r(9404),s=r(2015),c=r(8003),u=(a.List,function(e){var t,r;function a(){return e.apply(this,arguments)||this}return r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a.prototype.render=function(){var e=this.props,t=e.block,r=e.contentState,a=e.customStyleFn,u=e.customStyleMap,l=e.decorator,d=e.direction,p=e.forceSelection,f=e.hasSelection,h=e.selection,g=e.tree,m=t.getKey(),y=t.getText(),b=g.size-1,v=this.props.children||g.map(function(e,c){var g=e.get("decoratorKey"),v=e.get("leaves"),w=v.size-1,S=v.map(function(e,r){var n=i.encode(m,c,r),l=e.get("start"),d=e.get("end");return s.createElement(o,{key:n,offsetKey:n,block:t,start:l,selection:f?h:null,forceSelection:p,text:y.slice(l,d),styleSet:t.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===b&&r===w})}).toArray();return g&&l?s.createElement(n,{block:t,children:S,contentState:r,decorator:l,decoratorKey:g,direction:d,leafSet:e,text:y,key:c}):S}).toArray();return s.createElement("div",{"data-offset-key":i.encode(m,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},v)},a}(s.Component));e.exports=u},7503(e,t,r){var n=r(2015),o=r(8003),i=function(e){var t,r;function i(){return e.apply(this,arguments)||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return n.createElement("div",{className:t},n.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(n.Component);e.exports=i},6268(e,t,r){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(2015),a=r(4134),s=r(646),c=r(3816),u=a.isBrowser("IE <= 11"),l=function(e){var t,r;function a(t){var r;return o(n(r=e.call(this,t)||this),"_forceFlag",void 0),o(n(r),"_node",void 0),r._forceFlag=!1,r}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=a.prototype;return l.shouldComponentUpdate=function(e){var t=this._node,r=""===e.children;c(t)||s(!1);var n=t;return r?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(n):n.textContent!==e.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}(function(e){return t._node=e}):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);e.exports=l},3334(e){e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},1608(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(5407),i=r(9404),a=r(646),s=r(4809),c=(0,i.Map)(),u=s();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var d={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),d.__getLastCreatedEntityKey()},create:function(e,t,r){return l("DraftEntity.create","contentState.createEntity"),d.__create(e,t,r)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),d.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),d.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,u=s()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),d.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),d.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,r){return d.__add(new o({type:e,mutability:t,data:r||{}}))},__add:function(e){return u=s(),c=c.set(u,e),u},__get:function(e){var t=c.get(e);return t||a(!1),t},__mergeData:function(e,t){var r=d.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},r.getData(),t),i=r.set("data",o);return c=c.set(e,i),i},__replaceData:function(e,t){var r=d.__get(e).set("data",t);return c=c.set(e,r),r}};e.exports=d},5407(e,t,r){var n=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},n}((0,r(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=n},8382(e){e.exports={getRemovalRange:function(e,t,r,n,o){var i=r.split(" ");i=i.map(function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e});for(var a,s=n,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var d=n+r.length,p=c===n,f=u===d;return(!p&&f||p&&!f)&&("forward"===o?u!==d&&u++:c!==n&&c--),{start:c,end:u}}}},7204(e){e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},9938(e,t,r){var n=r(3018),o=r(4092),i=r(6416),a=r(508),s=r(866),c=r(9404),u=r(9127),l=r(3136),d=r(646),p=r(5462),f=r(6044),h=r(4435),g=r(841),m=c.OrderedSet,y={replaceText:function(e,t,r,o,i){var a=f(e,t),s=h(a,t),c=n.create({style:o||m(),entity:i||null});return l(s,s.getSelectionAfter(),r,c)},insertText:function(e,t,r,n,o){return t.isCollapsed()||d(!1),y.replaceText(e,t,r,n,o)},moveText:function(e,t,r){var n=s(e,t),o=y.removeRange(e,t,"backward");return y.replaceWithFragment(o,r,n)},replaceWithFragment:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=f(e,t),i=h(o,t);return u(i,i.getSelectionAfter(),r,n)},removeRange:function(e,t,r){var n,o,i,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(n),s=e.getBlockForKey(o);var c=t.getStartOffset(),u=t.getEndOffset(),l=i.getEntityAt(c),d=s.getEntityAt(u-1);if(n===o&&l&&l===d){var p=a(e.getEntityMap(),i,s,t,r);return h(e,p)}var g=f(e,t);return h(g,t)},splitBlock:function(e,t){var r=f(e,t),n=h(r,t);return g(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return o.add(e,t,r)},removeInlineStyle:function(e,t,r){return o.remove(e,t,r)},setBlockType:function(e,t,r){return p(e,t,function(e){return e.merge({type:r,depth:0})})},setBlockData:function(e,t,r){return p(e,t,function(e){return e.merge({data:r})})},mergeBlockData:function(e,t,r){return p(e,t,function(e){return e.merge({data:e.getData().merge(r)})})},applyEntity:function(e,t,r){var n=f(e,t);return i(n,t,r)}};e.exports=y},3885(e){var t="-",r={encode:function(e,r,n){return e+t+r+t+n},decode:function(e){var r=e.split(t).reverse(),n=r[0],o=r[1];return{blockKey:r.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(n,10)}}};e.exports=r},46(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(6840),i=r(5224),a=r(4712),s=r(6991),c=r(9248),u=r(7282),l=r(9404),d=r(1721),p=l.List,f=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,m={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,r){return e.reduce(function(e,o,i){o=d(o);var a=s(),c={key:a,type:r,text:o,characterList:p(f(t,o.length))};if(h&&0!==i){var u=i-1;c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},c,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new g(c)),e},[])}};e.exports=m},1617(e,t,r){var n="['‘’]",o="\\s|(?![_])"+r(7405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+n+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+n+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var r=t?a.exec(e):i.exec(e);return r?r[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},1439(e){var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},2396(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(6991),a=r(646),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},c={fromRawTreeStateToRawState:function(e){var t=e.blocks,r=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var r=[].concat(e).reverse();r.length;){var n=r.pop();t(n);var o=n.children;Array.isArray(o)||a(!1),r=r.concat([].concat(o.reverse()))}}(t,function(e){var t=n({},e);s(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map(function(t){return t.type===e.type?n({},t,{depth:(e.depth||0)+1}):t}))}(e),null!=e.children&&e.children.length>0)||(delete t.children,r.push(t))}),e.blocks=r,n({},e,{blocks:r})):e},fromRawStateToRawTreeState:function(e){var t=[],r=[];return e.blocks.forEach(function(e){var o=s(e),a=e.depth||0,c=n({},e,{children:[]});if(o){var u=r[0];if(null==u&&0===a)t.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(l),1===a?t.push(l):null!=u&&u.children.push(l),l.children.push(c)}else if(u.depth===a-1)u.children.push(c);else{for(;null!=u&&u.depth>=a;)r.shift(),u=r[0];a>0?u.children.push(c):t.push(c)}}else t.push(c)}),n({},e,{blocks:t})}};e.exports=c},2490(e,t,r){r(4594),e.exports={isValidBlock:function(e,t){var r=e.getKey(),n=e.getParentKey();if(null!=n&&!t.get(n).getChildKeys().includes(r))return!1;var o=e.getChildKeys().map(function(e){return t.get(e)});if(!o.every(function(e){return e.getParentKey()===r}))return!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==r)return!1;var a=e.getNextSiblingKey();return(null==a||t.get(a).getPrevSiblingKey()===r)&&!(null!==a&&null!==i&&i===a||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter(function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()});if(1!==t.length)return!1;for(var r=0,n=t.shift().getKey(),o=[];null!=n;){var i=e.get(n),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map(function(t){return e.get(t)}),u=c.find(function(e){return null==e.getPrevSiblingKey()});if(null==u)return!1;n=u.getKey()}else n=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();r++}return r===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every(function(r){return t.isValidBlock(r,e)})&&this.isConnectedTree(e)}}},3914(e,t,r){var n,o=r(1708),i=r(9404),a=r(6408),s=i.OrderedMap,c={getDirectionMap:function(e,t){n?n.reset():n=new o;var r=e.getBlockMap(),c=r.valueSeq().map(function(e){return a(n).getDirection(e.getText())}),u=s(r.keySeq().zip(c));return null!=t&&i.is(t,u)?t:u}};e.exports=c},2242(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(9981),a=r(7656),s=r(3914),c=r(1381),u=r(9404),l=u.OrderedSet,d=u.Record,p=u.Stack,f=u.OrderedMap,h=u.List,g=d({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()}),m=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,r){return t.createWithContent(a.createFromText(e),r)},t.createWithContent=function(e,r){if(0===e.getBlockMap().count())return t.createEmpty(r);var n=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:r||null,selection:c.createEmpty(n)})},t.create=function(e){var r=e.currentContent,o=n({},e,{treeMap:b(r,e.decorator),directionMap:s.getDirectionMap(r)});return new t(new g(o))},t.fromJS=function(e){return new t(new g(n({},e,{directionMap:null!=e.directionMap?f(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?l(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map(function(e){return a.fromJS(e)})):e.redoStack,selection:null!=e.selection?new c(e.selection):e.selection,treeMap:null!=e.treeMap?f(e.treeMap).map(function(e){return h(e).map(function(e){return i.fromJS(e)})}):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map(function(e){return a.fromJS(e)})):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,r){return new t(e.getImmutable().withMutations(function(t){var n=t.get("decorator"),o=n;null===r.decorator?o=null:r.decorator&&(o=r.decorator);var a=r.currentContent||e.getCurrentContent();if(o!==n){var s,c=t.get("treeMap");return s=o&&n?function(e,t,r,n,o){return r.merge(t.toSeq().filter(function(t){return n.getDecorations(t,e)!==o.getDecorations(t,e)}).map(function(t){return i.generate(e,t,n)}))}(a,a.getBlockMap(),c,o,n):b(a,o),void t.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,r,n){var o=e.getCurrentContent().set("entityMap",r),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter(function(e,t){return e!==a.get(t)}).map(function(e){return i.generate(o,e,n)}))}(e,a.getBlockMap(),a.getEntityMap(),o)),t.merge(r)}))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,r){return t.set(e,{inlineStyleOverride:r})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),r=this.getSelection();return r.isCollapsed()?function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),o=e.getBlockForKey(r);return n>0?o.getInlineStyleAt(n-1):o.getLength()?o.getInlineStyleAt(0):v(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),o=e.getBlockForKey(r);return n<o.getLength()?o.getInlineStyleAt(n):n>0?o.getInlineStyleAt(n-1):v(e,r)}(t,r)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return y(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),y(e,t,!0)},t.moveSelectionToEnd=function(e){var r=e.getCurrentContent().getLastBlock(),n=r.getKey(),o=r.getLength();return t.acceptSelection(e,new c({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var r=t.moveSelectionToEnd(e);return t.forceSelection(r,r.getSelection())},t.push=function(e,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===r)return e;var i=s.getDirectionMap(r,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:r,directionMap:i,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),c=e.getCurrentContent(),u=e.getUndoStack(),l=r;a!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,n)?(u=u.push(c),l=l.set("selectionBefore",a)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(l=l.set("selectionBefore",c.getSelectionBefore()));var d=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var f={currentContent:l,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:d};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var r=e.getUndoStack(),n=r.peek();if(!n)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(n,e.getDirectionMap());return t.set(e,{currentContent:n,directionMap:i,undoStack:r.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var r=e.getRedoStack(),n=r.peek();if(!n)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(n,e.getDirectionMap());return t.set(e,{currentContent:n,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function y(e,t,r){return m.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function b(e,t){return e.getBlockMap().map(function(r){return i.generate(e,r,t)}).toOrderedMap()}function v(e,t){var r=e.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}e.exports=m},9414(e,t,r){var n=r(4134),o=r(3174),i=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},6429(){},4637(e,t,r){var n=r(9938),o=r(2242),i=r(286),a=r(6408),s={currentBlockContainsLink:function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===n.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,r){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),r=o.push(e,t,"insert-characters");return o.forceSelection(r,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var r=e.getCurrentContent(),n=t.getStartKey(),i=r.getBlockBefore(n);if(i&&"atomic"===i.getType()){var a=r.getBlockMap().delete(i.getKey()),c=r.merge({blockMap:a,selectionAfter:t});if(c!==r)return o.push(e,c,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var r=e.getCurrentContent(),i=t.getStartKey(),a=r.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=r.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=n.removeRange(r,c,"forward");return u!==r?o.push(e,u,"remove-range"):null},onTab:function(e,t,r){var n=t.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(a),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var l=c.getDepth();if(!e.shiftKey&&l===r)return t;var d=i(s,n,e.shiftKey?-1:1,r);return o.push(t,d,"adjust-depth")},toggleBlockType:function(e,t){var r=e.getSelection(),i=r.getStartKey(),s=r.getEndKey(),c=e.getCurrentContent(),u=r;if(i!==s&&0===r.getEndOffset()){var l=a(c.getBlockBefore(s));s=l.getKey(),u=u.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:s,focusOffset:l.getLength(),isBackward:!1})}var d=c.getBlockMap().skipWhile(function(e,t){return t!==i}).reverse().skipWhile(function(e,t){return t!==s}).some(function(e){return"atomic"===e.getType()});if(d)return e;var p=c.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,n.setBlockType(c,u,p),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),r=t.getAnchorKey(),n=t.getFocusKey();return t.isCollapsed()||r!==n?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var r=e.getSelection(),i=e.getCurrentInlineStyle();if(r.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?n.removeInlineStyle(s,r,t):n.applyInlineStyle(s,r,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,r){var i=n.applyEntity(e.getCurrentContent(),t,r);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),r=t.getAnchorOffset();if(t.isCollapsed()&&0===r){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),s=i.getBlockBefore(o);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return n.setBlockType(i,t,"unstyled")}return null}};e.exports=s},5170(e,t,r){var n=r(9938),o=r(2242),i=r(866),a=r(6408),s=null,c={cut:function(e){var t=e.getCurrentContent(),r=e.getSelection(),c=null;if(r.isCollapsed()){var u=r.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===r.getAnchorOffset()){var d=t.getKeyAfter(u);if(null==d)return e;c=r.set("focusKey",d).set("focusOffset",0)}else c=r.set("focusOffset",l)}else c=r;c=a(c),s=i(t,c);var p=n.removeRange(t,c,"forward");return p===t?e:o.push(e,p,"remove-range")},paste:function(e){if(!s)return e;var t=n.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},1381(e,t,r){var n=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),o=this.getFocusKey();if(n===o&&n===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=r||t<=a&&a<=r}if(e!==n&&e!==o)return!1;var s=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=s&&r>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},n.createEmpty=function(e){return new n({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},n}((0,r(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},286(e){e.exports=function(e,t,r,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat([[i,a.get(i)]]).map(function(e){var t=e.getDepth()+r;return t=Math.max(0,Math.min(t,n)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},1952(e,t,r){var n=r(3018);e.exports=function(e,t,r,o){for(var i=t,a=e.getCharacterList();i<r;)a=a.set(i,n.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},6416(e,t,r){var n=r(1952),o=r(9404);e.exports=function(e,t,r){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===c}).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map(function(e,t){var o=t===a?s:0,i=t===c?u:e.getLength();return n(e,o,i,r)});return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},7470(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(6840),i=r(5224),a=r(1439),s=r(7862),c=r(702),u=r(646),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var r=t.entityMap,s=[],c={},d={},p=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var n=e.getEntityAt(t),o=a.stringify(n);d[o]||(d[o]=n,r[o]="".concat(p),p++)}),function(e,t,r,a){if(e instanceof o)r.push(l(e,t));else{e instanceof i||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},l(e,t),{children:[]});s?a[s].children.push(c):r.push(c)}}(e,r,s,c)}),{blocks:s,entityMap:r}}(e,t),t=function(e,t){var r=t.blocks,n=t.entityMap,o={};return Object.keys(n).forEach(function(t,r){var n=e.getEntity(a.unstringify(t));o[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:o}}(e,t),t}},4712(e,t,r){var n;function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(3018),s=r(6840),c=r(5224),u=r(3387),l=r(1608),d=r(5324),p=r(8003),f=r(6991),h=r(9248),g=r(7282),m=r(9404),y=m.List,b=m.Map,v=m.OrderedSet,w=r(316),S=r(2623),x=r(5291),E=r(4915),_=g("draft_tree_data_support"),O=new RegExp("\r","g"),C=new RegExp("\n","g"),k=new RegExp("^\n","g"),A=new RegExp(" ","g"),T=new RegExp(" ?","g"),D=new RegExp("​?","g"),I=["bold","bolder","500","600","700","800","900"],P=["light","lighter","normal","100","200","300","400"],L=["className","href","rel","target","title"],M=["alt","className","height","src","width"],R=(i(n={},p("public/DraftStyleDefault/depth0"),0),i(n,p("public/DraftStyleDefault/depth1"),1),i(n,p("public/DraftStyleDefault/depth2"),2),i(n,p("public/DraftStyleDefault/depth3"),3),i(n,p("public/DraftStyleDefault/depth4"),4),n),j=b({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),N=function(e){return x(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some(function(r){e.classList.contains(r)&&(t=R[r])}),t},B=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new d(t.href),!0}catch(e){return!1}},U=function(e){if(!E(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},K=function(e,t){if(!x(e))return t;var r=e,n=r.style.fontWeight,o=r.style.fontStyle,i=r.style.textDecoration;return t.withMutations(function(e){I.indexOf(n)>=0?e.add("BOLD"):P.indexOf(n)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})},H=function(e){return"ul"===e||"ol"===e},z=function(){function e(e,t){i(this,"characterList",y()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",l),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.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(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],v())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(_?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||f(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;H(i)&&(this.wrapper=i,H(s)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(U(o))this._addImgNode(o,t);else if(B(o))this._addAnchorNode(o,r,t);else{var u=t;j.has(i)&&(u=u.add(j.get(i))),u=K(o,u);var l=N(o);null!=l&&(u=u.add(l)),r.push.apply(r,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var d=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!_&&x(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var h=o;this.currentDepth=F(h,this.currentDepth)}var g=f(),m=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),r.push(this._makeBlockConfig({key:g,childConfigs:m,type:c})),this.currentDepth=d,this.wrapper=p}}}return r},t._appendText=function(e,t){var r;this.currentText+=e;var n=a.create({style:t,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(e.length).fill(n))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry(function(e){return null!==e.getEntity()});(t=void 0!==n?Math.min(t,n[0]):t)>(r=void 0!==(n=this.characterList.reverse().findEntry(function(e){return null!==e.getEntity()}))?Math.max(r,e-n[0]):r)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,r),this.characterList=this.characterList.slice(t,r))},t._addTextNode=function(e,t){var r=e.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(k,"")).replace(C," ")),this._appendText(r,t)},t._addBreakNode=function(e,t){S(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(E(e)){var r=e,n={};M.forEach(function(e){var t=r.getAttribute(e);t&&(n[e]=t)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",n),g("draftjs_fix_paste_for_img")?"presentation"!==r.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,r){if(w(e)){var n=e,o={};L.forEach(function(e){var t=n.getAttribute(e);t&&(o[e]=t)}),o.url=new d(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),r)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.length-1,n=0;n<=r;n++){var i=e[n];i.parent=t,i.prevSibling=n>0?e[n-1].key:null,i.nextSibling=n<r?e[n+1].key:null,i.children=y(i.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new c(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return y(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var r=t._extractTextFromBlockConfigs(e.childConfigs),n=r.text,i=r.characterList;t.contentBlocks.push(new s(o({},e,{text:e.text+n,characterList:e.characterList.concat(i)})))})},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,r="",n=y(),o=0;o<=t;o++){var i=e[o];r+=i.text,n=n.concat(i.characterList),""!==r&&"unstyled"!==i.type&&(r+="\n",n=n.push(n.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);r+=a.text,n=n.concat(a.characterList)}return{text:r,characterList:n}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(O,"").replace(A," ").replace(T,"").replace(D,""));if(!r)return null;var n=function(e){var t={};return e.mapKeys(function(e,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach(function(r){void 0===t[r]?t[r]=e:"string"==typeof t[r]?t[r]=[t[r],e]:t[r].push(e)})}),b(t)}(t);return new z(n,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(r).getContentBlocks()}},428(e,t,r){function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(6840),a=r(5224),s=r(7656),c=r(1608),u=r(2396),l=(r(2490),r(1381)),d=r(803),p=r(2401),f=r(3830),h=r(6991),g=r(7282),m=r(9404),y=r(646),b=g("draft_tree_data_support"),v=m.List,w=m.Map,S=m.OrderedMap,x=function(e,t){var r=e.key,n=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:n||"unstyled",key:r||h(),data:w(o),characterList:E(e,t)}},E=function(e,t){var r=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return d(f(r,i||[]),p(r,a.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return n({},e,{key:t[e.key]})})))},_=function(e){return n({},e,{key:e.key||h()})},O=function(e,t,r){var o=t.map(function(e){return n({},e,{parentRef:r})});return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,r={};return Object.keys(t).forEach(function(e){var n=t[e],o=n.type,i=n.mutability,a=n.data;r[e]=c.__create(o,i,a||{})}),r}(e),r=function(e,t){var r=e.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),o=b&&!r?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!b)return function(e,t){return S(e.map(function(e){var r=new i(x(e,t));return[r.getKey(),r]}))}(r?u.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(_).reduce(function(r,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(_),c=new a(n({},x(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:v(s.map(function(e){return e.key}))}));r=r.set(c.getKey(),c);for(var u=O([],s,c);u.length>0;){var l=u.pop(),d=l.parentRef,p=d.getChildKeys(),f=p.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var g=l.children.map(_),m=new a(n({},x(l,t),{parent:d.getKey(),children:v(g.map(function(e){return e.key})),prevSibling:0===f?null:p.get(f-1),nextSibling:f===p.size-1?null:p.get(f+1)}));r=r.set(m.getKey(),m),u=O(u,g,m)}return r},S())}(o,t);return s}(e,t),o=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new s({blockMap:r,entityMap:t,selectionBefore:o,selectionAfter:o})}},803(e,t,r){var n=r(3018),o=r(9404).List;e.exports=function(e,t){var r=e.map(function(e,r){var o=t[r];return n.create({style:e,entity:o})});return o(r)}},2401(e,t,r){var n=r(580).substr;e.exports=function(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var o=n(e,0,t.offset).length,i=o+n(e,t.offset,t.length).length,a=o;a<i;a++)r[a]=t.key}),r}},3830(e,t,r){var n=r(580),o=r(9404).OrderedSet,i=n.substr,a=o();e.exports=function(e,t){var r=Array(e.length).fill(a);return t&&t.forEach(function(t){for(var n=i(e,0,t.offset).length,o=n+i(e,t.offset,t.length).length;n<o;)r[n]=r[n].add(t.style),n++}),r}},1103(e){e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},3722(e,t,r){var n=r(9938),o=r(2242),i=r(4134),a=r(9927),s=r(3680),c=r(7759),u=r(6408),l=r(9765),d=i.isBrowser("Firefox");function p(e,t,r,i,a){var s=n.replaceText(e.getCurrentContent(),e.getSelection(),t,r,i);return o.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e._latestEditorState,n=t.data;if(n)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(n,r,t.timeStamp)))t.preventDefault();else{var i=r.getSelection(),f=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));var g,m=p(r,n,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),y=!1;if(y||(y=c(e._latestCommittedEditorState)),!y){var b=r.getBlockTree(h),v=m.getBlockTree(h);y=b.size!==v.size||b.zip(v).some(function(e){var t=e[0],r=e[1],o=t.get("start"),i=o+(o>=f?n.length:0),a=t.get("end"),s=a+(a>=f?n.length:0),c=r.get("start"),u=r.get("end"),l=r.get("decoratorKey");return t.get("decoratorKey")!==l||t.get("leaves").size!==r.get("leaves").size||i!==c||s!==u||null!=l&&u-c!==a-o})}if(y||(g=n,y=d&&("'"==g||"/"==g)),y||(y=u(m.getDirectionMap()).get(h)!==u(r.getDirectionMap()).get(h)),y)return t.preventDefault(),m=o.set(m,{forceSelection:!0}),void e.update(m);m=o.set(m,{nativelyRenderedContent:m.getCurrentContent()}),e._pendingStateFromBeforeInput=m,l(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}},8058(e,t,r){var n=r(2242),o=r(4909),i=r(9758);e.exports=function(e,t){var r=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(r)===r.body){var a=r.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(n.acceptSelection(c,l))}}},7141(e,t,r){var n=r(2242);e.exports=function(e,t){e.setMode("composite"),e.update(n.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},3694(e,t,r){var n=r(1296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(n(e._latestEditorState))}},3919(e,t,r){var n=r(9938),o=r(2242),i=r(2935),a=r(1296),s=r(7392),c=r(4316);e.exports=function(e,t){var r,u=e._latestEditorState,l=u.getSelection(),d=t.target;if(l.isCollapsed())t.preventDefault();else{if(c(d)){var p=d;r=s(i.getScrollParent(p))}var f=a(u);e.setClipboard(f),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(r),e.exitCurrentMode(),e.update(function(e){var t=n.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))},0)}}},6127(e){e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},4861(e){e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},4447(e,t,r){var n=r(2242),o=r(4134);e.exports=function(e,t){var r=e._latestEditorState,i=r.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(n.forceSelection(r,a)):e.update(n.acceptSelection(r,a))}}},5091(e,t,r){var n=r(9938),o=r(3885),i=r(2242),a=r(4134),s=r(1103).notEmptyKey,c=r(8372),u=r(7381),l=r(6408),d=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var r=e.editor.ownerDocument.defaultView.getSelection(),a=r.anchorNode,p=r.isCollapsed,f=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!f){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var m=a.textContent,y=e._latestEditorState,b=l(c(a)),v=o.decode(b),w=v.blockKey,S=v.decoratorKey,x=v.leafKey,E=y.getBlockTree(w).getIn([S,"leaves",x]),_=E.start,O=E.end,C=y.getCurrentContent(),k=C.getBlockForKey(w),A=k.getText().slice(_,O);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==A){var T,D,I,P,L=y.getSelection(),M=L.merge({anchorOffset:_,focusOffset:O,isBackward:!1}),R=k.getEntityAt(_),j=s(R)?C.getEntity(R):null,N="MUTABLE"===(null!=j?j.getMutability():null),F=N?"spellcheck-change":"apply-entity",B=n.replaceText(C,M,m,k.getInlineStyleAt(_),N?k.getEntityAt(_):null);if(d)T=r.anchorOffset,D=r.focusOffset,P=(I=_+Math.min(T,D))+Math.abs(T-D),T=I,D=P;else{var U=m.length-A.length;I=L.getStartOffset(),P=L.getEndOffset(),T=p?P+U:I,D=P+U}var K=B.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:T,focusOffset:D})});e.update(i.push(y,K,F))}else{var H=t.nativeEvent.inputType;if(H){var z=function(e,t){return"deleteContentBackward"===e?u(t):t}(H,y);if(z!==y)return e.restoreEditorDOM(),void e.update(z)}}}}},8136(e,t,r){var n=r(9938),o=r(2242),i=r(9414),a=r(5852),s=r(5170),c=r(4134),u=r(3680),l=r(8771),d=r(4143),p=r(525),f=r(4071),h=r(5169),g=r(70),m=r(7381),y=r(2383),b=r(5935),v=r(8976),w=i.isOptionKeyCommand,S=c.isBrowser("Chrome");e.exports=function(e,t){var r=t.which,i=e._latestEditorState;function c(r){var n=e.props[r];return!!n&&(n(t),!0)}switch(r){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:S&&w(t)&&t.preventDefault()}var x=e.props.keyBindingFn(t);if(null!=x&&""!==x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(x,i,t.timeStamp))){var E=function(e,t,r){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return p(t);case"backspace":return m(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return l(t,r);case"split-block":return f(t);case"transpose-characters":return b(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,i,t);E!==i&&e.update(E)}}else v(t,i,e.update);else if(r===a.SPACE&&S&&w(t)){var _=n.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,_,"insert-characters"))}}},2208(e,t,r){var n=r(5748),o=r(3018),i=r(2395),a=r(9938),s=r(46),c=r(2242),u=r(4637),l=r(9927),d=r(723),p=r(3680),f=r(3676);function h(e,t,r){var n=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,n.set("entityMap",r),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var r=new i(t.clipboardData);if(!r.isRichText()){var g=r.getFiles(),m=r.getText();if(g.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(g)))return;return void d(g,function(t){if(t=t||m){var r=e._latestEditorState,i=f(t),d=o.create({style:r.getCurrentInlineStyle(),entity:l(r.getCurrentContent(),r.getSelection())}),p=u.getCurrentBlockType(r),h=s.processText(i,d,p),g=n.createFromArray(h),y=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),g);e.update(c.push(r,y,"insert-fragment"))}})}}var y=[],b=r.getText(),v=r.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(b,v);b=S.text,v=S.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(b,v,w))){if(b&&(y=f(b)),!e.props.stripPastedStyles){var x,E=e.getClipboard();if(!e.props.formatPastedText&&r.isRichText()&&E){if(-1!==(null===(x=v)||void 0===x?void 0:x.indexOf(e.getEditorKey()))||1===y.length&&1===E.size&&E.first().getText()===b)return void e.update(h(e._latestEditorState,E))}else if(E&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,r){return t.getText()===e[r]})}(y,E))return void e.update(h(e._latestEditorState,E));if(v){var _=s.processHTML(v,e.props.blockRenderMap);if(_){var O=_.contentBlocks,C=_.entityMap;if(O){var k=n.createFromArray(O);return void e.update(h(e._latestEditorState,k,C))}}}e.setClipboard(null)}if(y.length){var A=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),T=u.getCurrentBlockType(w),D=s.processText(y,A,T),I=n.createFromArray(D);e.update(h(e._latestEditorState,I))}}}},6207(e,t,r){var n=r(7204),o=r(2242),i=r(3564),a=r(120);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var r=e.props.editorState,s=a(r,i(e)),c=s.selectionState;c!==r.getSelection()&&(r=s.needsRecovery?o.forceSelection(r,c):o.acceptSelection(r,c),e.update(r))}}},7862(e,t,r){var n=r(1439),o=r(580).strlen;e.exports=function(e,t){var r=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(i,a){var s=e.getText(),c=e.getEntityAt(i);r.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[n.stringify(c)])})}),r}},702(e,t,r){var n=r(580),o=r(8227),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),r=t.flatten().toSet().map(function(r){return function(e,t,r){var s=[],c=t.map(function(e){return e.has(r)}).toList();return o(c,i,a,function(t,o){var i=e.getText();s.push({offset:n.strlen(i.slice(0,t)),length:n.strlen(i.slice(t,o)),style:r})}),s}(e,t,r)});return Array.prototype.concat.apply(s,r.toJS())}},5989(e,t,r){var n=r(580),o=r(9677),i=r(5377),a=r(646);function s(e,t){for(var r=1/0,n=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(r=Math.min(r,s.top),n=Math.min(n,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=n&&o-r<t&&i-n<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var r=function(e){var t=getComputedStyle(e),r=o(e),n=r.createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";var i=r.body;i||a(!1),i.appendChild(n);var s=n.getBoundingClientRect();return i.removeChild(n),s.height}(t),u=e.endContainer,l=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),r)&&(u=e.startContainer,l=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var d=u,p=l-1;;){for(var f=d.nodeValue,h=p;h>=0;h--)if(!(null!=f&&h>0&&n.isSurrogatePair(f,h-1))){if(e.setStart(d,h),!s(i(e),r))break;u=d,l=h}if(-1===h||0===d.childNodes.length)break;p=c(d=d.childNodes[h])}return e.setStart(u,l),e}},8372(e,t,r){var n=r(9677),o=r(4453);e.exports=function(e){for(var t=e;t&&t!==n(e).documentElement;){var r=o(t);if(null!=r)return r;t=t.parentNode}return null}},8227(e){e.exports=function(e,t,r,n){if(e.size){var o=0;e.reduce(function(e,i,a){return t(e,i)||(r(e)&&n(o,a),o=a),i}),r(e.last())&&n(o,e.count())}}},6991(e){var t={},r=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return t[e]=!0,e}},508(e,t,r){var n=r(8382),o=r(9311),i=r(646);function a(e,t,r,a,s,c,u){var l=r.getStartOffset(),d=r.getEndOffset(),p=e.__get(s).getMutability(),f=u?l:d;if("MUTABLE"===p)return r;var h=o(t,s).filter(function(e){return f<=e.end&&f>=e.start});1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===p)return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?d=g.end:l=g.start);var m=n.getRemovalRange(l,d,t.getText().slice(g.start,g.end),g.start,a);return r.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}e.exports=function(e,t,r,n,o){var i=n.getStartOffset(),s=n.getEndOffset(),c=t.getEntityAt(i),u=r.getEntityAt(s-1);if(!c&&!u)return n;var l=n;if(c&&c===u)l=a(e,t,l,o,c,!0,!0);else if(c&&u){var d=a(e,t,l,o,c,!1,!0),p=a(e,r,l,o,u,!1,!1);l=l.merge({anchorOffset:d.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(c){var f=a(e,t,l,o,c,!1,!0);l=l.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,r,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},3564(e,t,r){var n=r(646),o=r(5291);e.exports=function(e){var t=e.editorContainer;return t||n(!1),o(t.firstChild)||n(!1),t.firstChild}},866(e,t,r){var n=r(3310),o=r(6044);e.exports=function(e,t){var r=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),u=c.keySeq(),l=u.indexOf(r),d=u.indexOf(a)+1;return n(c.slice(l,d).map(function(e,t){var n=e.getText(),o=e.getCharacterList();return r===a?e.merge({text:n.slice(i,s),characterList:o.slice(i,s)}):t===r?e.merge({text:n.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:n.slice(0,s),characterList:o.slice(0,s)}):e}))}},9677(e){e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},7811(e,t,r){var n=r(9414),o=r(5852),i=r(4134),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=n.hasCommandModifier,u=n.isCtrlKeyCommand;function l(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:l(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&a?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},120(e,t,r){var n=r(9215);e.exports=function(e,t){var r=t.ownerDocument.defaultView.getSelection(),o=r.anchorNode,i=r.anchorOffset,a=r.focusNode,s=r.focusOffset;return 0===r.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(e,t,o,i,a,s)}},9215(e,t,r){var n=r(8372),o=r(4453),i=r(9450),a=r(646),s=r(3816),c=r(6408);function u(e,t,r){var i=t,u=n(i);if(null!=u||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,s(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),r>0&&(r=i.childNodes.length)),0===r){var d=null;if(null!=u)d=u;else{var p=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);d=c(o(p))}return{key:d,offset:0}}var f=i.childNodes[r-1],h=null,g=null;if(o(f)){var m=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(f);h=c(o(m)),g=l(m)}else h=c(u),g=l(f);return{key:h,offset:g}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,r,o,a,s){var l=r.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(l&&d)return{selectionState:i(e,c(n(r)),o,c(n(a)),s),needsRecovery:!1};var p=null,f=null,h=!0;return l?(p={key:c(n(r)),offset:o},f=u(t,a,s)):d?(f={key:c(n(a)),offset:s},p=u(t,r,o)):(p=u(t,r,o),f=u(t,a,s),r===a&&o===s&&(h=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,f.key,f.offset),needsRecovery:h}}},9927(e,t,r){var n=r(1103).notEmptyKey;function o(e,t){return n(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var r;if(t.isCollapsed()){var n=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(r=e.getBlockForKey(n).getEntityAt(i-1))!==e.getBlockForKey(n).getEntityAt(i)?null:o(e.getEntityMap(),r):null}var a=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(a);return r=s===c.getLength()?null:c.getEntityAt(s),o(e.getEntityMap(),r)}},1296(e,t,r){var n=r(866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:n(e.getCurrentContent(),t)}},7376(e,t,r){var n=r(5224);e.exports=function(e,t){if(!(e instanceof n))return null;var r=e.getNextSiblingKey();if(r)return r;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},679(e){e.exports=function(e){return Object.keys(e).map(function(t){return e[t]})}},4658(e,t,r){var n=r(5377);e.exports=function(e){var t=n(e),r=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];r=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];r=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(r=Math.min(r,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:r,right:o,bottom:i,left:a,width:o-a,height:i-r}}},5377(e,t,r){var n=r(4134),o=r(646),i=n.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),r=[],n=e.endContainer;null!=n;n=n.parentNode){var i=n===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(r.push(s),i)return r.reverse(),(a=[]).concat.apply(a,r);t.setEndBefore(n)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},9311(e,t,r){var n=r(646);e.exports=function(e,t){var r=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){r.push({start:e,end:t})}),r.length||n(!1),r}},9248(e,t,r){var n=r(4134),o=r(646),i=n.isBrowser("IE <= 9");e.exports=function(e){var t,r=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}},4453(e,t,r){var n=r(3816);e.exports=function e(t){if(n(t)){var r=t,o=r.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<r.childNodes.length;i++){var a=e(r.childNodes[i]);if(a)return a}}return null}},723(e,t,r){var n=r(646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var r=0,a=[];e.forEach(function(s){!function(e,t){if(!globalThis.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var r="";return o.test(e.name)&&(r=e.name.replace(o,"")),void t(r)}var a=new FileReader;a.onload=function(){var e=a.result;"string"!=typeof e&&n(!1),t(e)},a.onerror=function(){t("")},a.readAsText(e)}}(s,function(n){r++,n&&a.push(n.slice(0,5e3)),r==e.length&&t(a.join("\r"))})})}},9450(e,t,r){var n=r(3885),o=r(6408);e.exports=function(e,t,r,i,a){var s=o(e.getSelection());if(!t||!i)return s;var c=n.decode(t),u=c.blockKey,l=e.getBlockTree(u),d=l&&l.getIn([c.decoratorKey,"leaves",c.leafKey]),p=n.decode(i),f=p.blockKey,h=e.getBlockTree(f),g=h&&h.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!d||!g)return s;var m=d.get("start"),y=g.get("start"),b=d?m+r:null,v=g?y+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===b&&s.getFocusKey()===f&&s.getFocusOffset()===v)return s;var w=!1;if(u===f){var S=d.get("end"),x=g.get("end");w=y===m&&x===S?a<r:y<m}else{var E=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===u||e===f}).first();w=E===f}return s.merge({anchorKey:u,anchorOffset:b,focusKey:f,focusOffset:v,isBackward:w})}},894(e,t,r){var n=r(4658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var r=t.getRangeAt(0),o=n(r),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},5389(e){e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},7282(e){e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},9127(e,t,r){var n=r(5748),o=r(5224),i=r(9404),a=r(6269),s=r(646),c=r(3310),u=i.List;e.exports=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var l=e.getBlockMap(),d=c(r),p=t.getStartKey(),f=t.getStartOffset(),h=l.get(p);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===d.size?function(e,t,r,n,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=r.get(o),u=c.getText(),l=c.getCharacterList(),d=o,p=i+n.getText().length,f=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":f=n.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":f=n.getData()}var h=c.getType();u&&"unstyled"===h&&(h=n.getType());var g=c.merge({text:u.slice(0,i)+n.getText()+u.slice(i),characterList:a(l,n.getCharacterList(),i),type:h,data:f});return e.merge({blockMap:r.set(o,g),selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})}(e,t,l,d.first(),p,f,i):function(e,t,r,i,a,s){var c=r.first()instanceof o,l=[],d=i.size,p=r.get(a),f=i.first(),h=i.last(),g=h.getLength(),m=h.getKey(),y=c&&(!p.getChildKeys().isEmpty()||!f.getChildKeys().isEmpty());r.forEach(function(e,t){t===a?(y?l.push(e):l.push(function(e,t,r){var n=e.getText(),o=e.getCharacterList(),i=n.slice(0,t),a=o.slice(0,t),s=r.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(y?0:1,d-1).forEach(function(e){return l.push(e)}),l.push(function(e,t,r){var n=e.getText(),o=e.getCharacterList(),i=n.length,a=n.slice(t,i),s=o.slice(t,i),c=r.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):l.push(e)});var b=n.createFromArray(l);return c&&(b=function(e,t,r,n){return e.withMutations(function(t){var o=r.getKey(),i=n.getKey(),a=r.getNextSiblingKey(),s=r.getParentKey(),c=function(e,t){var r=e.getKey(),n=e,o=[];for(t.get(r)&&o.push(r);n&&n.getNextSiblingKey();){var i=n.getNextSiblingKey();if(!i)break;o.push(i),n=t.get(i)}return o}(n,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],n.getNextSiblingKey()),t.setIn([n.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach(function(e){return t.setIn([e,"parent"],s)}),s){var d=e.get(s).getChildKeys(),p=d.indexOf(o)+1,f=d.toArray();f.splice.apply(f,[p,0].concat(c)),t.setIn([s,"children"],u(f))}})}(b,0,p,f)),e.merge({blockMap:b,selectionBefore:t,selectionAfter:t.merge({anchorKey:m,anchorOffset:g,focusKey:m,focusOffset:g,isBackward:!1})})}(e,t,l,d,p,f)}},6269(e){e.exports=function(e,t,r){var n=e;if(r===n.count())t.forEach(function(e){n=n.push(e)});else if(0===r)t.reverse().forEach(function(e){n=n.unshift(e)});else{var o=n.slice(0,r),i=n.slice(r);n=o.concat(t,i).toList()}return n}},3136(e,t,r){var n=r(9404),o=r(6269),i=r(646),a=n.Repeat;e.exports=function(e,t,r,n){t.isCollapsed()||i(!1);var s=null;if(null!=r&&(s=r.length),null==s||0===s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),d=c.get(u),p=d.getText(),f=d.merge({text:p.slice(0,l)+r+p.slice(l,d.getLength()),characterList:o(d.getCharacterList(),a(n,s).toList(),l)}),h=l+s;return e.merge({blockMap:c.set(u,f),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},3816(e){e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},3680(e){e.exports=function(e){return"handled"===e||!0===e}},316(e,t,r){var n=r(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"A"===e.nodeName}},2623(e,t,r){var n=r(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"BR"===e.nodeName}},5291(e){e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},4915(e,t,r){var n=r(3816);e.exports=function(e){return!(!e||!e.ownerDocument)&&n(e)&&"IMG"===e.nodeName}},4316(e){e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},7759(e){e.exports=function(e){var t=e.getSelection(),r=t.getAnchorKey(),n=e.getBlockTree(r),o=t.getStartOffset(),i=!1;return n.some(function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return o===t&&(i=!0,!0)})}),i}},3174(e,t,r){var n=r(5852);e.exports=function(e){return e.which===n.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},8771(e,t,r){var n=r(2242),o=r(5989),i=r(9215),a=r(8488),s=r(5188);e.exports=function(e,t){var r=s(e,function(e){var r=e.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(e,1);var n=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return n=o(n),i(e,null,n.endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return r===e.getCurrentContent()?e:n.push(e,r,"remove-range")}},4143(e,t,r){var n=r(1617),o=r(2242),i=r(8488),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset();if(0===r)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,r),s=n.getBackward(a);return i(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},525(e,t,r){var n=r(1617),o=r(2242),i=r(7800),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(r),s=n.getForward(a);return i(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},4071(e,t,r){var n=r(9938),o=r(2242);e.exports=function(e){var t=n.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},5169(e,t,r){var n=r(2242);e.exports=function(e){var t=e.getSelection(),r=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(r).getLength();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}),forceSelection:!0})}},70(e,t,r){var n=r(2242);e.exports=function(e){var t=e.getSelection(),r=t.getStartKey();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},7381(e,t,r){var n=r(2242),o=r(580),i=r(8488),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},2383(e,t,r){var n=r(2242),o=r(580),i=r(7800),a=r(5188);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=t.getAnchorKey(),a=t.getAnchorOffset(),s=r.getBlockForKey(n).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var r=e.getSelection();return n.push(e,t.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},5935(e,t,r){var n=r(9938),o=r(2242),i=r(866);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var r=t.getAnchorOffset();if(0===r)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;r===l?(a=t.set("anchorOffset",r-1),s=t):s=(a=t.set("focusOffset",r+1)).set("anchorOffset",r+1);var d=i(u,a),p=n.removeRange(u,a,"backward"),f=p.getSelectionAfter(),h=f.getAnchorOffset()-1,g=f.merge({anchorOffset:h,focusOffset:h}),m=n.replaceWithFragment(p,g,d),y=o.push(e,m,"insert-fragment");return o.acceptSelection(y,s)}},8976(e,t,r){var n=r(2242);e.exports=function(e,t,r){var o=n.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(r(n.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(o)},0)):r(o);else{var i=o.getCurrentContent();r(n.set(o,{nativelyRenderedContent:i}))}}},5462(e,t,r){var n=r(9404).Map;e.exports=function(e,t,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===i}).concat(n([[i,a.get(i)]])).map(r);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},6059(e,t,r){var n=r(5224),o=r(7376),i=r(9404),a=r(646),s=i.OrderedMap,c=i.List,u=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},l=function(e,t,r,n,o){if(!o)return e;var i="after"===n,a=t.getKey(),s=r.getKey(),l=t.getParentKey(),d=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),f=r.getParentKey(),h=i?r.getNextSiblingKey():s,g=i?s:r.getPrevSiblingKey();return e.withMutations(function(e){u(l,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),u(p,e,function(e){return e.merge({nextSibling:d})}),u(d,e,function(e){return e.merge({prevSibling:p})}),u(h,e,function(e){return e.merge({prevSibling:a})}),u(g,e,function(e){return e.merge({nextSibling:a})}),u(f,e,function(e){var t=e.getChildKeys(),r=t.indexOf(s),n=i?r+1:0!==r?r-1:0,o=t.toArray();return o.splice(n,0,a),e.merge({children:c(o)})}),u(a,e,function(e){return e.merge({nextSibling:h,prevSibling:g,parent:f})})})};e.exports=function(e,t,r,i){"replace"===i&&a(!1);var c=r.getKey(),u=t.getKey();u===c&&a(!1);var d=e.getBlockMap(),p=t instanceof n,f=[t],h=d.delete(u);p&&(f=[],h=d.withMutations(function(e){var r=t.getNextSiblingKey(),n=o(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===u}).takeWhile(function(e){var t=e.getKey(),o=t===u,i=r&&t!==r,a=!r&&e.getParentKey()&&(!n||t!==n);return!!(o||i||a)}).forEach(function(t){f.push(t),e.delete(t.getKey())})}));var g=h.toSeq().takeUntil(function(e){return e===r}),m=h.toSeq().skipUntil(function(e){return e===r}).skip(1),y=f.map(function(e){return[e.getKey(),e]}),b=s();if("before"===i){var v=e.getBlockBefore(c);v&&v.getKey()===t.getKey()&&a(!1),b=g.concat([].concat(y,[[c,r]]),m).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),b=g.concat([[c,r]].concat(y),m).toOrderedMap()}return e.merge({blockMap:l(b,t,r,i,p),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},8488(e,t,r){r(4594),e.exports=function(e,t){var r=e.getSelection(),n=e.getCurrentContent(),o=r.getStartKey(),i=r.getStartOffset(),a=o,s=0;if(t>i){var c=n.getKeyBefore(o);null==c?a=o:(a=c,s=n.getBlockForKey(c).getText().length)}else s=i-t;return r.merge({focusKey:a,focusOffset:s,isBackward:!0})}},7800(e,t,r){r(4594),e.exports=function(e,t){var r,n=e.getSelection(),o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})}},3310(e,t,r){var n=r(5224),o=r(6991),i=r(9404).OrderedMap;e.exports=function(e){return e.first()instanceof n?function(e){var t,r={};return i(e.withMutations(function(e){e.forEach(function(n,i){var a=n.getKey(),s=n.getNextSiblingKey(),c=n.getPrevSiblingKey(),u=n.getChildKeys(),l=n.getParentKey(),d=o();if(r[a]=d,s&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],d):e.setIn([a,"prevSibling"],null)),l&&e.get(l)){var p=e.get(l).getChildKeys();e.setIn([l,"children"],p.set(p.indexOf(n.getKey()),d))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],r[t.getKey()])),t=e.get(a);u.forEach(function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[r[e.getKey()],e.set("key",r[e.getKey()])]}))}(e):function(e){return i(e.toArray().map(function(e){var t=o();return[t,e.set("key",t)]}))}(e)}},6044(e,t,r){var n=r(3018),o=r(8227),i=r(646);function a(e,t,r){var a=t.getCharacterList(),s=r>0?a.get(r-1):void 0,c=r<a.count()?a.get(r):void 0,u=s?s.getEntity():void 0,l=c?c.getEntity():void 0;if(l&&l===u&&"MUTABLE"!==e.__get(l).getMutability()){for(var d,p=function(e,t,r){var n;return o(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===t},function(e,t){e<=r&&t>=r&&(n={start:e,end:t})}),"object"!=typeof n&&i(!1),n}(a,l,r),f=p.start,h=p.end;f<h;)d=a.get(f),a=a.set(f,n.applyEntity(d,null)),f++;return t.set("characterList",a)}return t}e.exports=function(e,t){var r=e.getBlockMap(),n=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),c=r.get(i),u=a(n,c,s);u!==c&&(o[i]=u);var l=t.getEndKey(),d=t.getEndOffset(),p=r.get(l);i===l&&(p=u);var f=a(n,p,d);return f!==p&&(o[l]=f),Object.keys(o).length?e.merge({blockMap:r.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},4435(e,t,r){var n=r(5224),o=r(7376),i=r(9404),a=(i.List,i.Map),s=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}},c=function(e,t){var r=[];if(!e)return r;for(var n=t.get(e);n&&n.getParentKey();){var o=n.getParentKey();o&&r.push(o),n=o?t.get(o):null}return r},u=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getNextSiblingKey();n&&!t.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(e,t,r){if(!e)return null;for(var n=r.get(e.getKey()).getPrevSiblingKey();n&&!t.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n};e.exports=function(e,t){if(t.isCollapsed())return e;var r,i=e.getBlockMap(),d=t.getStartKey(),p=t.getStartOffset(),f=t.getEndKey(),h=t.getEndOffset(),g=i.get(d),m=i.get(f),y=g instanceof n,b=[];if(y){var v=m.getChildKeys(),w=c(f,i);m.getNextSiblingKey()&&(b=b.concat(w)),v.isEmpty()||(b=b.concat(w.concat([f]))),b=b.concat(c(o(m,i),i))}r=g===m?function(e,t,r){if(0===t)for(;t<r;)e=e.shift(),t++;else if(r===e.count())for(;r>t;)e=e.pop(),r--;else{var n=e.slice(0,t),o=e.slice(r);e=n.concat(o).toList()}return e}(g.getCharacterList(),p,h):g.getCharacterList().slice(0,p).concat(m.getCharacterList().slice(h));var S=g.merge({text:g.getText().slice(0,p)+m.getText().slice(h),characterList:r}),x=y&&0===p&&0===h&&m.getParentKey()===d&&null==m.getPrevSiblingKey()?a([[d,null]]):i.toSeq().skipUntil(function(e,t){return t===d}).takeUntil(function(e,t){return t===f}).filter(function(e,t){return-1===b.indexOf(t)}).concat(a([[f,null]])).map(function(e,t){return t===d?S:null}),E=i.merge(x).filter(function(e){return!!e});return y&&g!==m&&(E=function(e,t,r,n){return e.withMutations(function(i){if(s(t.getKey(),i,function(e){return e.merge({nextSibling:u(e,i,n),prevSibling:l(e,i,n)})}),s(r.getKey(),i,function(e){return e.merge({nextSibling:u(e,i,n),prevSibling:l(e,i,n)})}),c(t.getKey(),n).forEach(function(e){return s(e,i,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return i.get(e)}),nextSibling:u(e,i,n),prevSibling:l(e,i,n)})})}),s(t.getNextSiblingKey(),i,function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})}),s(t.getPrevSiblingKey(),i,function(e){return e.merge({nextSibling:u(e,i,n)})}),s(r.getNextSiblingKey(),i,function(e){return e.merge({prevSibling:l(e,i,n)})}),s(r.getPrevSiblingKey(),i,function(e){return e.merge({nextSibling:r.getNextSiblingKey()})}),c(r.getKey(),n).forEach(function(e){s(e,i,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return i.get(e)}),nextSibling:u(e,i,n),prevSibling:l(e,i,n)})})}),function(e,t){var r=[];if(!e)return r;for(var n=o(e,t);n&&t.get(n);){var i=t.get(n);r.push(n),n=i.getParentKey()?o(i,t):null}return r}(r,n).forEach(function(e){return s(e,i,function(e){return e.merge({nextSibling:u(e,i,n),prevSibling:l(e,i,n)})})}),null==e.get(t.getKey())&&null!=e.get(r.getKey())&&r.getParentKey()===t.getKey()&&null==r.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(r.getKey(),i,function(e){return e.merge({prevSibling:a})}),s(a,i,function(e){return e.merge({nextSibling:r.getKey()})});var d=a?e.get(a):null,p=d?d.getParentKey():null;if(t.getChildKeys().forEach(function(e){s(e,i,function(e){return e.merge({parent:p})})}),null!=p){var f=e.get(p);s(p,i,function(e){return e.merge({children:f.getChildKeys().concat(t.getChildKeys())})})}s(t.getChildKeys().find(function(t){return null===e.get(t).getNextSiblingKey()}),i,function(e){return e.merge({nextSibling:t.getNextSiblingKey()})})}})}(E,g,m,i)),e.merge({blockMap:E,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})}},5188(e,t,r){var n=r(9938),o=r(7282)("draft_tree_data_support");e.exports=function(e,t,r){var i=e.getSelection(),a=e.getCurrentContent(),s=i,c=i.getAnchorKey(),u=i.getFocusKey(),l=a.getBlockForKey(c);if(o&&"forward"===r&&c!==u)return a;if(i.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(c).getLength()){var d=a.getBlockForKey(l.nextSibling);if(!d||0===d.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return n.removeRange(a,s,r)}},1721(e){var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},4660(e,t,r){var n=r(3334),o=r(7204),i=r(4134),a=r(4909),s=r(9758),c=r(9677),u=r(646),l=r(3816),d=i.isBrowser("IE");function p(e,t){if(!e)return"[empty]";var r=f(e,t);return r.nodeType===Node.TEXT_NODE?r.textContent:(l(r)||u(!1),r.outerHTML)}function f(e,t){var r=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var n=e.textContent.length;return c(e).createTextNode("[text "+n+(r.length?" | "+r.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&r.length&&o.setAttribute("data-labels",r.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(f(i[a],t));return o}function h(e,t){for(var r=e,n=r;r;){if(l(r)&&n.hasAttribute("contenteditable"))return p(r,t);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function g(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function m(e,t,r,n){var i=s();if(e.extend&&null!=t&&a(i,t)){r>g(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,r)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(t,function(t){var r=[];return t===i&&r.push("active element"),t===e.anchorNode&&r.push("selection anchor node"),t===e.focusNode&&r.push("selection focus node"),r}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,r),e.addRange(u.cloneRange())}}function y(e,t,r,i){var a=c(t).createRange();if(r>g(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())}),n.handleExtensionCausedError()),a.setStart(t,r),d)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,r,n,o){var i=c(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),u=e.getAnchorKey(),l=e.getAnchorOffset(),d=e.getFocusKey(),p=e.getFocusOffset(),f=e.getIsBackward();if(!s.extend&&f){var h=u,g=l;u=d,l=p,d=h,p=g,f=!1}var b=u===r&&n<=l&&o>=l,v=d===r&&n<=p&&o>=p;if(b&&v)return s.removeAllRanges(),y(s,t,l-n,e),void m(s,t,p-n,e);if(f){if(v&&(s.removeAllRanges(),y(s,t,p-n,e)),b){var w=s.focusNode,S=s.focusOffset;s.removeAllRanges(),y(s,t,l-n,e),m(s,w,S,e)}}else b&&(s.removeAllRanges(),y(s,t,l-n,e)),v&&m(s,t,p-n,e)}},addFocusToSelection:m}},841(e,t,r){var n=r(5224),o=r(6991),i=r(9404),a=r(646),s=r(5462),c=i.List,u=i.Map,l=function(e,t,r){if(e){var n=t.get(e);n&&t.set(e,r(n))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var r=t.getAnchorKey(),i=e.getBlockMap(),d=i.get(r),p=d.getText();if(!p){var f=d.getType();if("unordered-list-item"===f||"ordered-list-item"===f)return s(e,t,function(e){return e.merge({type:"unstyled",depth:0})})}var h=t.getAnchorOffset(),g=d.getCharacterList(),m=o(),y=d instanceof n,b=d.merge({text:p.slice(0,h),characterList:g.slice(0,h)}),v=b.merge({key:m,text:p.slice(h),characterList:g.slice(h),data:u()}),w=i.toSeq().takeUntil(function(e){return e===d}),S=i.toSeq().skipUntil(function(e){return e===d}).rest(),x=w.concat([[r,b],[m,v]],S).toOrderedMap();return y&&(d.getChildKeys().isEmpty()||a(!1),x=function(e,t,r){return e.withMutations(function(e){var n=t.getKey(),o=r.getKey();l(t.getParentKey(),e,function(e){var t=e.getChildKeys(),r=t.indexOf(n)+1,i=t.toArray();return i.splice(r,0,o),e.merge({children:c(i)})}),l(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:o})}),l(n,e,function(e){return e.merge({nextSibling:o})}),l(o,e,function(e){return e.merge({prevSibling:n})})})}(x,b,v)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})}},3676(e){var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},4809(e){e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}},7007(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,a,u;if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):h(o,o.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=h(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2395(e,t,r){var n=r(4886),o=r(1864),i=r(9395),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return s[e]})},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.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(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.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 e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),r=0;r<t.length;r++){var o=t[r].type;if(!n.isImage(o))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(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=u},5852(e){e.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}},4886(e){var t={isImage:function(e){return"image"===r(e)[0]},isJpeg:function(e){var n=r(e);return t.isImage(e)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(e){return e.split("/")}e.exports=t},3529(e){function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollTop||r.documentElement.scrollTop:e.scrollTop},setTop:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollTop=n.documentElement.scrollTop=r:e.scrollTop=r},getLeft:function(e){var r=e.ownerDocument;return t(e,r)?r.body.scrollLeft||r.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,r){var n=e.ownerDocument;t(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:e.scrollLeft=r}};e.exports=r},2935(e,t,r){function n(e,t){var r=o.get(e,t);return"auto"===r||"scroll"===r}var o={get:r(6892),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},7405(e){e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},5324(e){var t=function(){function e(e){var t,r;r=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},8307(e,t,r){var n=r(5822),o=r(646),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?n.NEUTRAL:c.exec(t)?n.RTL:n.LTR}function d(e,t){if(t=t||n.NEUTRAL,!e.length)return t;var r=l(e);return r===n.NEUTRAL?t:r}function p(e,t){return t||(t=n.getGlobalDir()),n.isStrong(t)||o(!1),d(e,t)}var f={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:d,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===n.LTR},isDirectionRTL:function(e,t){return p(e,t)===n.RTL}};e.exports=f},5822(e,t,r){var n=r(646),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function s(e){return a(e)||n(!1),e===o?"ltr":"rtl"}function c(e){i=e}var u={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||n(!1),a(t)||n(!1),e===t?null:s(e)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}};e.exports=u},1708(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(8307),i=r(5822),a=r(646),s=function(){function e(e){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},580(e,t,r){var n=r(646),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function c(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!a(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var o=0;if(t>0){for(;t>0&&o<n;t--)o+=s(e,o);if(o>=n)return""}else if(t<0){for(o=n;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var i=n;if(r<n)for(i=o;r>0&&i<n;r--)i+=s(e,i);return e.substring(o,i)}var u={getCodePoints:function(e){for(var t=[],r=0;r<e.length;r+=s(e,r))t.push(e.codePointAt(r));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||n(!1),t+1===e.length)return!1;var r=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=r&&r<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,r=0;r<e.length;r+=s(e,r))t++;return t},substring:function(e,t,r){(t=t||0)<0&&(t=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-t);return c(e,t=t<r?t:r,n)},substr:c};e.exports=u},4134(e,t,r){var n=r(4534),o=r(953),i=r(3731),a=r(4793);function s(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var i=r.slice(e.length);return!!t&&(i=n?n(i):i,o.contains(i,t))}function c(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(n.browserArchitecture,null,e)},isDevice:function(e){return s(n.deviceName,null,e)},isEngine:function(e){return s(n.engineName,n.engineVersion,e)},isPlatform:function(e){return s(n.platformName,n.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(n.platformArchitecture,null,e)}};e.exports=i(u,a)},4534(e,t,r){var n,o="Unknown",i=(new(r(7232))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(n=i.os.name,{"Mac OS":"Mac OS X"}[n]||n||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};e.exports=s},953(e,t,r){var n=r(646),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){if(""===(e=e.trim()))return!0;var r=t.split(o),n=p(e),i=n.modifier,a=n.rangeComponents;switch(i){case"<":return l(r,a);case"<=":return function(e,t){var r=b(e,t);return-1===r||0===r}(r,a);case">=":return d(r,a);case">":return function(e,t){return 1===b(e,t)}(r,a);case"~":case"~>":return function(e,t){var r=t.slice(),n=t.slice();n.length>1&&n.pop();var o=n.length-1,i=parseInt(n[o],10);return f(i)&&(n[o]=i+1+""),d(e,r)&&l(e,n)}(r,a);default:return function(e,t){return 0===b(e,t)}(r,a)}}function l(e,t){return-1===b(e,t)}function d(e,t){var r=b(e,t);return 1===r||0===r}function p(e){var t=e.split(o),r=t[0].match(s);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(t.slice(1))}}function f(e){return!isNaN(e)&&isFinite(e)}function h(e){return!p(e).modifier}function g(e,t){for(var r=e.length;r<t;r++)e[r]="0"}function m(e,t){var r=e.match(c)[1],n=t.match(c)[1],o=parseInt(r,10),i=parseInt(n,10);return f(o)&&f(i)&&o!==i?y(o,i):y(e,t)}function y(e,t){return typeof e!=typeof t&&n(!1),e>t?1:e<t?-1:0}function b(e,t){for(var r=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var r=0;r<t.length;r++){var n=t[r].match(/^[x*]$/i);if(n&&(t[r]=e[r]="0","*"===n[0]&&r===t.length-1))for(var o=r;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),n=r[0],o=r[1],i=0;i<o.length;i++){var a=m(n[i],o[i]);if(a)return a}return 0}var v={contains:function(e,t){return function(e,t){var r=e.split(i);return r.length>1?r.some(function(e){return v.contains(e,t)}):function(e,t){var r=e.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return u(r[0],t);var o=r[0],i=r[1];return h(o)&&h(i)||n(!1),u(">="+o,t)&&u("<="+i,t)}(e=r[0].trim(),t)}(e.trim(),t.trim())}};e.exports=v},8748(e){var t=/-(.)/g;e.exports=function(e){return e.replace(t,function(e,t){return t.toUpperCase()})}},4909(e,t,r){var n=r(5423);e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}},1864(e,t,r){var n=r(646);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&n(!1),"number"!=typeof t&&n(!1),0===t||t-1 in e||n(!1),"function"==typeof e.callee&&n(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}(e):[e]}},8003(e){function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},9395(e){function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},9758(e){e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},9824(e){var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},8527(e,t,r){var n=r(7078);e.exports=function(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},7078(e,t,r){var n=r(4909);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!n(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}},7392(e,t,r){var n=r(9824),o=r(7458);e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,s)),r}},6892(e,t,r){var n=r(8748),o=r(3998);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(e,null)))return i(r.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(e,null))return i(r.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):i(e.style&&e.style[n(t)])}},7458(e){e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},1401(e){function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function n(){return{width:window.innerWidth||t(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:t(),height:r()}},e.exports=n},3998(e){var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},646(e){e.exports=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,function(){return String(n[a++])}))).name="Invariant Violation"}throw i.framesToPop=1,i}}},5504(e){e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},5423(e,t,r){var n=r(5504);e.exports=function(e){return n(e)&&3==e.nodeType}},798(e){e.exports=function(e){var t=e||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var o=arguments[n];o&&(t=(t?t+" ":"")+o)}return t}},3731(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,r,n){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=r.call(n,e[i],i,e));return o}},4793(e){e.exports=function(e){var t={};return function(r){return t.hasOwnProperty(r)||(t[r]=e.call(this,r)),t[r]}}},6408(e){e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},9765(e,t,r){r(2791),e.exports=globalThis.setImmediate},4594(e,t,r){var n=r(9395);e.exports=n},1894(e){e.exports="object"==typeof self?self.FormData:window.FormData},4146(e,t,r){var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var a=l(r);d&&(a=a.concat(d(r)));for(var s=c(t),g=c(r),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||n&&n[y]||g&&g[y]||s&&s[y])){var b=p(r,y);try{u(t,y,b)}catch(e){}}}}return t}},9404(e){e.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return a(e)?e:z(e)}function n(e){return s(e)?e:V(e)}function o(e){return c(e)?e:q(e)}function i(e){return a(e)&&!u(e)?e:G(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function c(e){return!(!e||!e[f])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(n,r),t(o,r),t(i,r),r.isIterable=a,r.isKeyed=s,r.isIndexed=c,r.isAssociative=u,r.isOrdered=l,r.Keyed=n,r.Indexed=o,r.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=32,y=31,b={},v={value:!1},w={value:!1};function S(e){return e.value=!1,e}function x(e){e&&(e.value=!0)}function E(){}function _(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),o=0;o<r;o++)n[o]=e[o+t];return n}function O(e){return void 0===e.size&&(e.size=e.__iterate(k)),e.size}function C(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?O(e)+t:t}function k(){return!0}function A(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function T(e,t){return I(e,t,0)}function D(e,t){return I(e,t,t)}function I(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var P="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",M=P||L;function R(e){this.next=e}function j(e,t,r,n){var o=0===e?t:1===e?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function N(){return{value:void 0,done:!0}}function F(e){return!!K(e)}function B(e){return e&&"function"==typeof e.next}function U(e){var t=K(e);return t&&t.call(e)}function K(e){var t=e&&(P&&e[P]||e[L]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null==e?re():a(e)?e.toSeq():function(e){var t=ie(e)||"object"==typeof e&&new J(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function V(e){return null==e?re().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():ne(e)}function q(e){return null==e?re():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function G(e){return(null==e?re():a(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[M]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},z.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(V,z),V.prototype.toKeyedSeq=function(){return this},t(q,z),q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},q.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(G,z),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},z.isSeq=te,z.Keyed=V,z.Set=G,z.Indexed=q;var W,$,Y,X="@@__IMMUTABLE_SEQ__@@";function Z(e){this._array=e,this.size=e.length}function J(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Q(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[X])}function re(){return W||(W=new Z([]))}function ne(e){var t=Array.isArray(e)?new Z(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():F(e)?new Q(e).fromEntrySeq():"object"==typeof e?new J(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ie(e){return H(e)?new Z(e):B(e)?new ee(e):F(e)?new Q(e):void 0}function ae(e,t,r,n){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[r?i-a:a];if(!1===t(s[1],n?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,r)}function se(e,t,r,n){var o=e._cache;if(o){var i=o.length-1,a=0;return new R(function(){var e=o[r?i-a:a];return a++>i?{value:void 0,done:!0}:j(t,n?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,r)}function ce(e,t){return t?ue(t,e,"",{"":e}):le(e)}function ue(e,t,r,n){return Array.isArray(t)?e.call(n,r,q(t).map(function(r,n){return ue(e,r,n,t)})):de(t)?e.call(n,r,V(t).map(function(r,n){return ue(e,r,n,t)})):t}function le(e){return Array.isArray(e)?q(e).map(le).toList():de(e)?V(e).map(le).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function fe(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!u(e);if(l(e)){var n=e.entries();return t.every(function(e,t){var o=n.next().value;return o&&pe(o[1],e)&&(r||pe(o[0],t))})&&n.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,p=t.__iterate(function(t,n){if(r?!e.has(t):o?!pe(t,e.get(n,b)):!pe(e.get(n,b),t))return d=!1,!1});return d&&e.size===p}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ge(e,t){if(!e)throw new Error(t)}function me(e,t,r){if(!(this instanceof me))return new me(e,t,r);if(ge(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),t<e&&(r=-r),this._start=e,this._end=t,this._step=r,this.size=Math.max(0,Math.ceil((t-e)/r-1)+1),0===this.size){if(Y)return Y;Y=this}}function ye(){throw TypeError("Abstract")}function be(){}function ve(){}function we(){}z.prototype[X]=!0,t(Z,q),Z.prototype.get=function(e,t){return this.has(e)?this._array[C(this,e)]:t},Z.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length-1,o=0;o<=n;o++)if(!1===e(r[t?n-o:o],o,this))return o+1;return o},Z.prototype.__iterator=function(e,t){var r=this._array,n=r.length-1,o=0;return new R(function(){return o>n?{value:void 0,done:!0}:j(e,o,r[t?n-o++:o++])})},t(J,V),J.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},J.prototype.has=function(e){return this._object.hasOwnProperty(e)},J.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,o=n.length-1,i=0;i<=o;i++){var a=n[t?o-i:i];if(!1===e(r[a],a,this))return i+1}return i},J.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,o=n.length-1,i=0;return new R(function(){var a=n[t?o-i:i];return i++>o?{value:void 0,done:!0}:j(e,a,r[a])})},J.prototype[h]=!0,t(Q,q),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=U(this._iterable),n=0;if(B(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,n++,this););return n},Q.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=U(this._iterable);if(!B(r))return new R(N);var n=0;return new R(function(){var t=r.next();return t.done?t:j(e,n++,t.value)})},t(ee,q),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(r=n.next()).done;){var a=r.value;if(o[i]=a,!1===e(a,i++,this))break}return i},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,o=0;return new R(function(){if(o>=n.length){var t=r.next();if(t.done)return t;n[o]=t.value}return j(e,o,n[o++])})},t(he,q),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return pe(this._value,e)},he.prototype.slice=function(e,t){var r=this.size;return A(e,t,r)?this:new he(this._value,D(t,r)-T(e,r))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++)if(!1===e(this._value,r,this))return r+1;return r},he.prototype.__iterator=function(e,t){var r=this,n=0;return new R(function(){return n<r.size?j(e,n++,r._value):{value:void 0,done:!0}})},he.prototype.equals=function(e){return e instanceof he?pe(this._value,e._value):fe(e)},t(me,q),me.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},me.prototype.get=function(e,t){return this.has(e)?this._start+C(this,e)*this._step:t},me.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},me.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=D(t,this.size))<=e?new me(0,0):new me(this.get(e,this._end),this.get(t,this._end),this._step))},me.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var r=t/this._step;if(r>=0&&r<this.size)return r}return-1},me.prototype.lastIndexOf=function(e){return this.indexOf(e)},me.prototype.__iterate=function(e,t){for(var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;i<=r;i++){if(!1===e(o,i,this))return i+1;o+=t?-n:n}return i},me.prototype.__iterator=function(e,t){var r=this.size-1,n=this._step,o=t?this._start+r*n:this._start,i=0;return new R(function(){var a=o;return o+=t?-n:n,i>r?{value:void 0,done:!0}:j(e,i++,a)})},me.prototype.equals=function(e){return e instanceof me?this._start===e._start&&this._end===e._end&&this._step===e._step:fe(this,e)},t(ye,r),t(be,ye),t(ve,ye),t(we,ye),ye.Keyed=be,ye.Indexed=ve,ye.Set=we;var Se="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Ee(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return xe(r)}if("string"===t)return e.length>Le?function(e){var t=je[e];return void 0===t&&(t=_e(e),Re===Me&&(Re=0,je={}),Re++,je[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(De&&void 0!==(t=Te.get(e)))return t;if(void 0!==(t=e[Pe]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Pe]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ie,1073741824&Ie&&(Ie=0),De)Te.set(e,t);else{if(void 0!==ke&&!1===ke(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Pe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Pe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Pe]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return xe(t)}var Oe=(1048576*Math.random()|1)%1048576||40503;function Ce(e){if("string"!=typeof e)return Ee(e);for(var t=0,r=0;r<e.length;r++)t=Oe*t+e.charCodeAt(r)|0;return t}var ke=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Te,De="function"==typeof WeakMap;De&&(Te=new WeakMap);var Ie=0,Pe="__immutablehash__";"function"==typeof Symbol&&(Pe=Symbol(Pe));var Le=16,Me=255,Re=0,je={};function Ne(e){ge(e!==1/0,"Cannot perform this action with an infinite size.")}function Fe(e){return null==e?Je():Be(e)&&!l(e)?e:Je().withMutations(function(t){var r=n(e);Ne(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function Be(e){return!(!e||!e[Ke])}t(Fe,be),Fe.of=function(){var t=e.call(arguments,0);return Je().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])}})},Fe.prototype.toString=function(){return this.__toString("Map {","}")},Fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Fe.prototype.set=function(e,t){return Qe(this,e,t)},Fe.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},Fe.prototype.remove=function(e){return Qe(this,e,b)},Fe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},Fe.prototype.update=function(e,t,r){return 1===arguments.length?e(this):this.updateIn([e],t,r)},Fe.prototype.updateIn=function(e,t,r){r||(r=t,t=void 0);var n=st(this,sr(e),t,r);return n===b?void 0:n},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Je()},Fe.prototype.merge=function(){return nt(this,void 0,arguments)},Fe.prototype.mergeWith=function(t){return nt(this,t,e.call(arguments,1))},Fe.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Je(),function(e){return"function"==typeof e.merge?e.merge.apply(e,r):r[r.length-1]})},Fe.prototype.mergeDeep=function(){return nt(this,ot,arguments)},Fe.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return nt(this,it(t),r)},Fe.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Je(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,r):r[r.length-1]})},Fe.prototype.sort=function(e){return Mt(Xt(this,e))},Fe.prototype.sortBy=function(e,t){return Mt(Xt(this,t,e))},Fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new E)},Fe.prototype.asImmutable=function(){return this.__ensureOwner()},Fe.prototype.wasAltered=function(){return this.__altered},Fe.prototype.__iterator=function(e,t){return new $e(this,e,t)},Fe.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate(function(t){return n++,e(t[1],t[0],r)},t),n},Fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ze(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Fe.isMap=Be;var Ue,Ke="@@__IMMUTABLE_MAP__@@",He=Fe.prototype;function ze(e,t){this.ownerID=e,this.entries=t}function Ve(e,t,r){this.ownerID=e,this.bitmap=t,this.nodes=r}function qe(e,t,r){this.ownerID=e,this.count=t,this.nodes=r}function Ge(e,t,r){this.ownerID=e,this.keyHash=t,this.entries=r,this._index=void 0}function We(e,t,r){this.ownerID=e,this.keyHash=t,this.entry=r}function $e(e,t,r){this._type=t,this._reverse=r,this._stack=e._root&&Xe(e._root)}function Ye(e,t){return j(e,t[0],t[1])}function Xe(e,t){return{node:e,index:0,__prev:t}}function Ze(e,t,r,n){var o=Object.create(He);return o.size=e,o._root=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Je(){return Ue||(Ue=Ze(0))}function Qe(e,t,r){var n,o;if(e._root){var i=S(v),a=S(w);if(n=et(e._root,e.__ownerID,0,void 0,t,r,i,a),!a.value)return e;o=e.size+(i.value?r===b?-1:1:0)}else{if(r===b)return e;o=1,n=new ze(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=o,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?Ze(o,n):Je()}function et(e,t,r,n,o,i,a,s){return e?e.update(t,r,n,o,i,a,s):i===b?e:(x(s),x(a),new We(t,n,[o,i]))}function tt(e){return e.constructor===We||e.constructor===Ge}function rt(e,t,r,n,o){if(e.keyHash===n)return new Ge(t,n,[e.entry,o]);var i,a=(0===r?e.keyHash:e.keyHash>>>r)&y,s=(0===r?n:n>>>r)&y;return new Ve(t,1<<a|1<<s,a===s?[rt(e,t,r+5,n,o)]:(i=new We(t,n,o),a<s?[e,i]:[i,e]))}function nt(e,t,r){for(var o=[],i=0;i<r.length;i++){var s=r[i],c=n(s);a(s)||(c=c.map(function(e){return ce(e)})),o.push(c)}return at(e,t,o)}function ot(e,t,r){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):pe(e,t)?e:t}function it(e){return function(t,r,n){if(t&&t.mergeDeepWith&&a(r))return t.mergeDeepWith(e,r);var o=e(t,r,n);return pe(t,o)?t:o}}function at(e,t,r){return r=r.filter(function(e){return 0!==e.size}),0===r.length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var n=t?function(r,n){e.update(n,b,function(e){return e===b?r:t(e,r,n)})}:function(t,r){e.set(r,t)},o=0;o<r.length;o++)r[o].forEach(n)}):e.constructor(r[0])}function st(e,t,r,n){var o=e===b,i=t.next();if(i.done){var a=o?r:e,s=n(a);return s===a?e:s}ge(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=st(u,t,r,n);return l===u?e:l===b?e.remove(c):(o?Je():e).set(c,l)}function ct(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function ut(e,t,r,n){var o=n?e:_(e);return o[t]=r,o}He[Ke]=!0,He[g]=He.remove,He.removeIn=He.deleteIn,ze.prototype.get=function(e,t,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(pe(r,o[i][0]))return o[i][1];return n},ze.prototype.update=function(e,t,r,n,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!pe(n,c[u][0]);u++);var d=u<l;if(d?c[u][1]===o:s)return this;if(x(a),(s||!d)&&x(i),!s||1!==c.length){if(!d&&!s&&c.length>=lt)return function(e,t,r,n){e||(e=new E);for(var o=new We(e,Ee(r),[r,n]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,c,n,o);var p=e&&e===this.ownerID,f=p?c:_(c);return d?s?u===l-1?f.pop():f[u]=f.pop():f[u]=[n,o]:f.push([n,o]),p?(this.entries=f,this):new ze(e,f)}},Ve.prototype.get=function(e,t,r,n){void 0===t&&(t=Ee(r));var o=1<<((0===e?t:t>>>e)&y),i=this.bitmap;return 0===(i&o)?n:this.nodes[ct(i&o-1)].get(e+5,t,r,n)},Ve.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=(0===t?r:r>>>t)&y,c=1<<s,u=this.bitmap,l=0!==(u&c);if(!l&&o===b)return this;var d=ct(u&c-1),p=this.nodes,f=l?p[d]:void 0,h=et(f,e,t+5,r,n,o,i,a);if(h===f)return this;if(!l&&h&&p.length>=dt)return function(e,t,r,n,o){for(var i=0,a=new Array(m),s=0;0!==r;s++,r>>>=1)a[s]=1&r?t[i++]:void 0;return a[n]=o,new qe(e,i+1,a)}(e,p,u,s,h);if(l&&!h&&2===p.length&&tt(p[1^d]))return p[1^d];if(l&&h&&1===p.length&&tt(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?ut(p,d,h,g):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var o=new Array(n),i=0,a=0;a<n;a++)a===t&&(i=1),o[a]=e[a+i];return o}(p,d,g):function(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=r,a=-1):i[s]=e[s+a];return i}(p,d,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ve(e,v,w)},qe.prototype.get=function(e,t,r,n){void 0===t&&(t=Ee(r));var o=(0===e?t:t>>>e)&y,i=this.nodes[o];return i?i.get(e+5,t,r,n):n},qe.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=(0===t?r:r>>>t)&y,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var d=et(l,e,t+5,r,n,o,i,a);if(d===l)return this;var p=this.count;if(l){if(!d&&--p<pt)return function(e,t,r,n){for(var o=0,i=0,a=new Array(r),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==n&&(o|=c,a[i++]=l)}return new Ve(e,o,a)}(e,u,p,s)}else p++;var f=e&&e===this.ownerID,h=ut(u,s,d,f);return f?(this.count=p,this.nodes=h,this):new qe(e,p,h)},Ge.prototype._positionOf=function(e,t){var r=this.entries,n=this._index;if(void 0===n&&t&&r.length>=ft&&(n=this._buildIndex()),void 0!==n){var o=n[Ce(e)];if(void 0!==o)for(var i=0;i<o.length;i++){var a=o[i];if(pe(e,r[a][0]))return a}return-1}for(var s=0,c=r.length;s<c;s++)if(pe(e,r[s][0]))return s;return-1},Ge.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,r=0,n=t.length;r<n;r++){var o=Ce(t[r][0]),i=e[o];void 0!==i?i.push(r):e[o]=[r]}return this._index=e,e},Ge.prototype.get=function(e,t,r,n){var o=this._positionOf(r,!0);return-1===o?n:this.entries[o][1]},Ge.prototype.update=function(e,t,r,n,o,i,a){void 0===r&&(r=Ee(n));var s=o===b;if(r!==this.keyHash)return s?this:(x(a),x(i),rt(this,e,t,r,[n,o]));var c=this.entries,u=c.length,l=e&&e===this.ownerID,d=this._positionOf(n,l),p=-1===d?u:d,f=-1!==d;if(f?c[p][1]===o:s)return this;if(x(a),(s||!f)&&x(i),s&&2===u)return new We(e,this.keyHash,c[1^p]);var h=l?c:_(c);if(f)s?(p===u-1?h.pop():h[p]=h.pop(),l&&(this._index=void 0)):h[p]=[n,o];else if(h.push([n,o]),l&&void 0!==this._index){var g=Ce(n),m=this._index[g];void 0!==m?m.push(u):this._index[g]=[u]}return l?(this.entries=h,this):new Ge(e,this.keyHash,h)},We.prototype.get=function(e,t,r,n){return pe(r,this.entry[0])?this.entry[1]:n},We.prototype.update=function(e,t,r,n,o,i,a){var s=o===b,c=pe(n,this.entry[0]);return(c?o===this.entry[1]:s)?this:(x(a),s?void x(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new We(e,this.keyHash,[n,o]):(x(i),rt(this,e,t,Ee(n),[n,o])))},ze.prototype.iterate=Ge.prototype.iterate=function(e,t){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(!1===e(r[t?o-n:n]))return!1},Ve.prototype.iterate=qe.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[t?o-n:n];if(i&&!1===i.iterate(e,t))return!1}},We.prototype.iterate=function(e,t){return e(this.entry)},t($e,R),$e.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var r,n=t.node,o=t.index++;if(n.entry){if(0===o)return Ye(e,n.entry)}else if(n.entries){if(o<=(r=n.entries.length-1))return Ye(e,n.entries[this._reverse?r-o:o])}else if(o<=(r=n.nodes.length-1)){var i=n.nodes[this._reverse?r-o:o];if(i){if(i.entry)return Ye(e,i.entry);t=this._stack=Xe(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var lt=8,dt=16,pt=8,ft=16;function ht(e){var t=Et();if(null==e)return t;if(gt(e))return e;var r=o(e),n=r.size;return 0===n?t:(Ne(n),n>0&&n<m?xt(0,n,5,null,new bt(r.toArray())):t.withMutations(function(e){e.setSize(n),r.forEach(function(t,r){return e.set(r,t)})}))}function gt(e){return!(!e||!e[mt])}t(ht,ve),ht.of=function(){return this(arguments)},ht.prototype.toString=function(){return this.__toString("List [","]")},ht.prototype.get=function(e,t){if((e=C(this,e))>=0&&e<this.size){var r=Ct(this,e+=this._origin);return r&&r.array[e&y]}return t},ht.prototype.set=function(e,t){return function(e,t,r){if((t=C(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?At(e,t).set(0,r):At(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=S(w);return t>=Dt(e._capacity)?n=_t(n,e.__ownerID,0,t,r,i):o=_t(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):xt(e._origin,e._capacity,e._level,o,n):e}(this,e,t)},ht.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ht.prototype.insert=function(e,t){return this.splice(e,0,t)},ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},ht.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){At(r,0,t+e.length);for(var n=0;n<e.length;n++)r.set(t+n,e[n])})},ht.prototype.pop=function(){return At(this,0,-1)},ht.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){At(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])})},ht.prototype.shift=function(){return At(this,1)},ht.prototype.merge=function(){return Tt(this,void 0,arguments)},ht.prototype.mergeWith=function(t){return Tt(this,t,e.call(arguments,1))},ht.prototype.mergeDeep=function(){return Tt(this,ot,arguments)},ht.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return Tt(this,it(t),r)},ht.prototype.setSize=function(e){return At(this,0,e)},ht.prototype.slice=function(e,t){var r=this.size;return A(e,t,r)?this:At(this,T(e,r),D(t,r))},ht.prototype.__iterator=function(e,t){var r=0,n=St(this,t);return new R(function(){var t=n();return t===wt?{value:void 0,done:!0}:j(e,r++,t)})},ht.prototype.__iterate=function(e,t){for(var r,n=0,o=St(this,t);(r=o())!==wt&&!1!==e(r,n++,this););return n},ht.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?xt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},ht.isList=gt;var mt="@@__IMMUTABLE_LIST__@@",yt=ht.prototype;function bt(e,t){this.array=e,this.ownerID=t}yt[mt]=!0,yt[g]=yt.remove,yt.setIn=He.setIn,yt.deleteIn=yt.removeIn=He.removeIn,yt.update=He.update,yt.updateIn=He.updateIn,yt.mergeIn=He.mergeIn,yt.mergeDeepIn=He.mergeDeepIn,yt.withMutations=He.withMutations,yt.asMutable=He.asMutable,yt.asImmutable=He.asImmutable,yt.wasAltered=He.wasAltered,bt.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:0===this.array.length)return this;var n=r>>>t&y;if(n>=this.array.length)return new bt([],e);var o,i=0===n;if(t>0){var a=this.array[n];if((o=a&&a.removeBefore(e,t-5,r))===a&&i)return this}if(i&&!o)return this;var s=Ot(this,e);if(!i)for(var c=0;c<n;c++)s.array[c]=void 0;return o&&(s.array[n]=o),s},bt.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||0===this.array.length)return this;var n,o=r-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((n=i&&i.removeAfter(e,t-5,r))===i&&o===this.array.length-1)return this}var a=Ot(this,e);return a.array.splice(o+1),n&&(a.array[o]=n),a};var vt,wt={};function St(e,t){var r=e._origin,n=e._capacity,o=Dt(n),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>r?0:r-a,u=n-a;return u>m&&(u=m),function(){if(c===u)return wt;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>r?0:r-i>>o,l=1+(n-i>>o);return l>m&&(l=m),function(){for(;;){if(s){var e=s();if(e!==wt)return e;s=null}if(u===l)return wt;var r=t?--l:u++;s=a(c&&c[r],o-5,i+(r<<o))}}}(e,s,c)}}function xt(e,t,r,n,o,i,a){var s=Object.create(yt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=r,s._root=n,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Et(){return vt||(vt=xt(0,0,5))}function _t(e,t,r,n,o,i){var a,s=n>>>r&y,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(r>0){var u=e&&e.array[s],l=_t(u,t,r-5,n,o,i);return l===u?e:((a=Ot(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(x(i),a=Ot(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Ot(e,t){return t&&e&&t===e.ownerID?e:new bt(e?e.array.slice():[],t)}function Ct(e,t){if(t>=Dt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&y],n-=5;return r}}function kt(e){return"number"==typeof e&&isFinite(e)}function At(e,t,r){(function(e,t,r){var n=e._origin+(void 0===t?0:t),o=void 0===r?e._capacity:r<0?e._capacity+r:e._origin+r;if(kt(o)&&o>Pt||kt(n)&&n<-Pt||kt(o)&&kt(n)&&o-n>Pt)throw new RangeError("Invalid List size: a List cannot hold more than "+Pt+" (2 ** 30) values.")})(e,t,r),void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new E,o=e._origin,i=e._capacity,a=o+t,s=void 0===r?i:r<0?i+r:o+r;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new bt(u&&u.array.length?[void 0,u]:[],n),l+=Lt(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var d=Dt(i),p=Dt(s);p>=Lt(c+5);)u=new bt(u&&u.array.length?[u]:[],n),c+=5;var f=e._tail,h=p<d?Ct(e,s-1):p>d?new bt([],n):f;if(f&&p>d&&a<i&&f.array.length){for(var g=u=Ot(u,n),m=c;m>5;m-=5){var b=d>>>m&y;g=g.array[b]=Ot(g.array[b],n)}g.array[d>>>5&y]=f}if(s<i&&(h=h&&h.removeAfter(n,0,s)),a>=p)a-=p,s-=p,c=5,u=null,h=h&&h.removeBefore(n,0,a);else if(a>o||p<d){for(l=0;u;){var v=a>>>c&y;if(v!==p>>>c&y)break;v&&(l+=(1<<c)*v),c-=5,u=u.array[v]}u&&a>o&&(u=u.removeBefore(n,c,a-l)),u&&p<d&&(u=u.removeAfter(n,c,p-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):xt(a,s,c,u,h)}function Tt(e,t,r){for(var n=[],i=0,s=0;s<r.length;s++){var c=r[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map(function(e){return ce(e)})),n.push(u)}return i>e.size&&(e=e.setSize(i)),at(e,t,n)}function Dt(e){return e<m?0:e-1>>>5<<5}var It,Pt=1073741824;function Lt(e){return e<31?1<<e:Math.pow(2,e)}function Mt(e){return null==e?Nt():Rt(e)?e:Nt().withMutations(function(t){var r=n(e);Ne(r.size),r.forEach(function(e,r){return t.set(r,e)})})}function Rt(e){return Be(e)&&l(e)}function jt(e,t,r,n){var o=Object.create(Mt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=r,o.__hash=n,o}function Nt(){return It||(It=jt(Je(),Et()))}function Ft(e,t,r){var n,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(r===b){if(!c)return e;a.size>=m&&a.size>=2*i.size?(n=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=o.__ownerID=e.__ownerID)):(n=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(r===a.get(s)[1])return e;n=i,o=a.set(s,[t,r])}else n=i.set(t,a.size),o=a.set(a.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=o,e.__hash=void 0,e):jt(n,o)}function Bt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Ht(e){this._iter=e,this.size=e.size}function zt(e){var t=or(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=ir,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(2===t){var n=e.__iterator(t,r);return new R(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,r)},t}function Vt(e,t,r){var n=or(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,o){var i=e.get(n,b);return i===b?o:t.call(r,i,n,e)},n.__iterateUncached=function(n,o){var i=this;return e.__iterate(function(e,o,a){return!1!==n(t.call(r,e,o,a),o,i)},o)},n.__iteratorUncached=function(n,o){var i=e.__iterator(2,o);return new R(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return j(n,s,t.call(r,a[1],s,e),o)})},n}function qt(e,t){var r=or(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=zt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=ir,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Gt(e,t,r,n){var o=or(e);return n&&(o.has=function(n){var o=e.get(n,b);return o!==b&&!!t.call(r,o,n,e)},o.get=function(n,o){var i=e.get(n,b);return i!==b&&t.call(r,i,n,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,c){if(t.call(r,e,i,c))return s++,o(e,n?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new R(function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(r,l,u,e))return j(o,n?u:s++,l,i)}})},o}function Wt(e,t,r,n){var o=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r===1/0?r=o:r|=0),A(t,r,o))return e;var i=T(t,o),a=D(r,o);if(i!=i||a!=a)return Wt(e.toSeq().cacheResult(),t,r,n);var s,c=a-i;c==c&&(s=c<0?0:c);var u=or(e);return u.size=0===s?s:e.size&&s||void 0,!n&&te(e)&&s>=0&&(u.get=function(t,r){return(t=C(this,t))>=0&&t<s?e.get(t+i,r):r}),u.__iterateUncached=function(t,r){var o=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(t,r);var a=0,c=!0,u=0;return e.__iterate(function(e,r){if(!c||!(c=a++<i))return u++,!1!==t(e,n?r:u-1,o)&&u!==s}),u},u.__iteratorUncached=function(t,r){if(0!==s&&r)return this.cacheResult().__iterator(t,r);var o=0!==s&&e.__iterator(t,r),a=0,c=0;return new R(function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var e=o.next();return n||1===t?e:j(t,c-1,0===t?void 0:e.value[1],e)})},u}function $t(e,t,r,n){var o=or(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(r,e,i,u)))return c++,o(e,n?i:c-1,a)}),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,u=0;return new R(function(){var e,i,l;do{if((e=s.next()).done)return n||1===o?e:j(o,u++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],l=d[1],c&&(c=t.call(r,l,i,a))}while(c);return 2===o?e:j(o,i,l,e)})},o}function Yt(e,t,r){var n=or(e);return n.__iterateUncached=function(n,o){var i=0,s=!1;return function e(c,u){var l=this;c.__iterate(function(o,c){return(!t||u<t)&&a(o)?e(o,u+1):!1===n(o,r?c:i++,l)&&(s=!0),!s},o)}(e,0),i},n.__iteratorUncached=function(n,o){var i=e.__iterator(n,o),s=[],c=0;return new R(function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(2===n&&(u=u[1]),t&&!(s.length<t)||!a(u))return r?e:j(n,c++,u,e);s.push(i),i=u.__iterator(n,o)}else i=s.pop()}return{value:void 0,done:!0}})},n}function Xt(e,t,r){t||(t=ar);var n=s(e),o=0,i=e.toSeq().map(function(t,n){return[n,t,o++,r?r(t,n,e):t]}).toArray();return i.sort(function(e,r){return t(e[3],r[3])||e[2]-r[2]}).forEach(n?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),n?V(i):c(e)?q(i):G(i)}function Zt(e,t,r){if(t||(t=ar),r){var n=e.toSeq().map(function(t,n){return[t,r(t,n,e)]}).reduce(function(e,r){return Jt(t,e[1],r[1])?r:e});return n&&n[0]}return e.reduce(function(e,r){return Jt(t,e,r)?r:e})}function Jt(e,t,r){var n=e(r,t);return 0===n&&r!==t&&(null==r||r!=r)||n>0}function Qt(e,t,n){var o=or(e);return o.size=new Z(n).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var r,n=this.__iterator(1,t),o=0;!(r=n.next()).done&&!1!==e(r.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map(function(e){return e=r(e),U(o?e.reverse():e)}),a=0,s=!1;return new R(function(){var r;return s||(r=i.map(function(e){return e.next()}),s=r.some(function(e){return e.done})),s?{value:void 0,done:!0}:j(e,a++,t.apply(null,r.map(function(e){return e.value})))})},o}function er(e,t){return te(e)?t:e.constructor(t)}function tr(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function rr(e){return Ne(e.size),O(e)}function nr(e){return s(e)?n:c(e)?o:i}function or(e){return Object.create((s(e)?V:c(e)?q:G).prototype)}function ir(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function ar(e,t){return e>t?1:e<t?-1:0}function sr(e){var t=U(e);if(!t){if(!H(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(r(e))}return t}function cr(e,t){var r,n=function(i){if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(pr.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Fe(i)},o=n.prototype=Object.create(ur);return o.constructor=n,n}t(Mt,Fe),Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Mt.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},Mt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Nt()},Mt.prototype.set=function(e,t){return Ft(this,e,t)},Mt.prototype.remove=function(e){return Ft(this,e,b)},Mt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Mt.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],r)},t)},Mt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Mt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?jt(t,r,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=r,this)},Mt.isOrderedMap=Rt,Mt.prototype[h]=!0,Mt.prototype[g]=Mt.prototype.remove,t(Bt,V),Bt.prototype.get=function(e,t){return this._iter.get(e,t)},Bt.prototype.has=function(e){return this._iter.has(e)},Bt.prototype.valueSeq=function(){return this._iter.valueSeq()},Bt.prototype.reverse=function(){var e=this,t=qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Bt.prototype.map=function(e,t){var r=this,n=Vt(this,e,t);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(e,t)}),n},Bt.prototype.__iterate=function(e,t){var r,n=this;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?rr(this):0,function(o){return e(o,t?--r:r++,n)}),t)},Bt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var r=this._iter.__iterator(1,t),n=t?rr(this):0;return new R(function(){var o=r.next();return o.done?o:j(e,t?--n:n++,o.value,o)})},Bt.prototype[h]=!0,t(Ut,q),Ut.prototype.includes=function(e){return this._iter.includes(e)},Ut.prototype.__iterate=function(e,t){var r=this,n=0;return this._iter.__iterate(function(t){return e(t,n++,r)},t)},Ut.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t),n=0;return new R(function(){var t=r.next();return t.done?t:j(e,n++,t.value,t)})},t(Kt,G),Kt.prototype.has=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){return e(t,t,r)},t)},Kt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R(function(){var t=r.next();return t.done?t:j(e,t.value,t.value,t)})},t(Ht,V),Ht.prototype.entrySeq=function(){return this._iter.toSeq()},Ht.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate(function(t){if(t){tr(t);var n=a(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}},t)},Ht.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R(function(){for(;;){var t=r.next();if(t.done)return t;var n=t.value;if(n){tr(n);var o=a(n);return j(e,o?n.get(0):n[0],o?n.get(1):n[1],t)}}})},Ut.prototype.cacheResult=Bt.prototype.cacheResult=Kt.prototype.cacheResult=Ht.prototype.cacheResult=ir,t(cr,be),cr.prototype.toString=function(){return this.__toString(dr(this)+" {","}")},cr.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},cr.prototype.get=function(e,t){if(!this.has(e))return t;var r=this._defaultValues[e];return this._map?this._map.get(e,r):r},cr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=lr(this,Je()))},cr.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+dr(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:lr(this,r)},cr.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:lr(this,t)},cr.prototype.wasAltered=function(){return this._map.wasAltered()},cr.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},cr.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},cr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?lr(this,t,e):(this.__ownerID=e,this._map=t,this)};var ur=cr.prototype;function lr(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._map=t,n.__ownerID=r,n}function dr(e){return e._name||e.constructor.name||"Record"}function pr(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ge(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function fr(e){return null==e?wr():hr(e)&&!l(e)?e:wr().withMutations(function(t){var r=i(e);Ne(r.size),r.forEach(function(e){return t.add(e)})})}function hr(e){return!(!e||!e[mr])}ur[g]=ur.remove,ur.deleteIn=ur.removeIn=He.removeIn,ur.merge=He.merge,ur.mergeWith=He.mergeWith,ur.mergeIn=He.mergeIn,ur.mergeDeep=He.mergeDeep,ur.mergeDeepWith=He.mergeDeepWith,ur.mergeDeepIn=He.mergeDeepIn,ur.setIn=He.setIn,ur.update=He.update,ur.updateIn=He.updateIn,ur.withMutations=He.withMutations,ur.asMutable=He.asMutable,ur.asImmutable=He.asImmutable,t(fr,we),fr.of=function(){return this(arguments)},fr.fromKeys=function(e){return this(n(e).keySeq())},fr.prototype.toString=function(){return this.__toString("Set {","}")},fr.prototype.has=function(e){return this._map.has(e)},fr.prototype.add=function(e){return br(this,this._map.set(e,!0))},fr.prototype.remove=function(e){return br(this,this._map.remove(e))},fr.prototype.clear=function(){return br(this,this._map.clear())},fr.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter(function(e){return 0!==e.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)i(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},fr.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.every(function(e){return e.includes(r)})||e.remove(r)})})},fr.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return i(e)});var r=this;return this.withMutations(function(e){r.forEach(function(r){t.some(function(e){return e.includes(r)})&&e.remove(r)})})},fr.prototype.merge=function(){return this.union.apply(this,arguments)},fr.prototype.mergeWith=function(t){var r=e.call(arguments,1);return this.union.apply(this,r)},fr.prototype.sort=function(e){return Sr(Xt(this,e))},fr.prototype.sortBy=function(e,t){return Sr(Xt(this,t,e))},fr.prototype.wasAltered=function(){return this._map.wasAltered()},fr.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate(function(t,n){return e(n,n,r)},t)},fr.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},fr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},fr.isSet=hr;var gr,mr="@@__IMMUTABLE_SET__@@",yr=fr.prototype;function br(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function vr(e,t){var r=Object.create(yr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function wr(){return gr||(gr=vr(Je()))}function Sr(e){return null==e?Cr():xr(e)?e:Cr().withMutations(function(t){var r=i(e);Ne(r.size),r.forEach(function(e){return t.add(e)})})}function xr(e){return hr(e)&&l(e)}yr[mr]=!0,yr[g]=yr.remove,yr.mergeDeep=yr.merge,yr.mergeDeepWith=yr.mergeWith,yr.withMutations=He.withMutations,yr.asMutable=He.asMutable,yr.asImmutable=He.asImmutable,yr.__empty=wr,yr.__make=vr,t(Sr,fr),Sr.of=function(){return this(arguments)},Sr.fromKeys=function(e){return this(n(e).keySeq())},Sr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Sr.isOrderedSet=xr;var Er,_r=Sr.prototype;function Or(e,t){var r=Object.create(_r);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function Cr(){return Er||(Er=Or(Nt()))}function kr(e){return null==e?Lr():Ar(e)?e:Lr().unshiftAll(e)}function Ar(e){return!(!e||!e[Dr])}_r[h]=!0,_r.__empty=Cr,_r.__make=Or,t(kr,ve),kr.of=function(){return this(arguments)},kr.prototype.toString=function(){return this.__toString("Stack [","]")},kr.prototype.get=function(e,t){var r=this._head;for(e=C(this,e);r&&e--;)r=r.next;return r?r.value:t},kr.prototype.peek=function(){return this._head&&this._head.value},kr.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,r=arguments.length-1;r>=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Pr(e,t)},kr.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ne(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):Pr(t,r)},kr.prototype.pop=function(){return this.slice(1)},kr.prototype.unshift=function(){return this.push.apply(this,arguments)},kr.prototype.unshiftAll=function(e){return this.pushAll(e)},kr.prototype.shift=function(){return this.pop.apply(this,arguments)},kr.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):Lr()},kr.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var r=T(e,this.size);if(D(t,this.size)!==this.size)return ve.prototype.slice.call(this,e,t);for(var n=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=n,this._head=o,this.__hash=void 0,this.__altered=!0,this):Pr(n,o)},kr.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},kr.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},kr.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new R(function(){if(n){var t=n.value;return n=n.next,j(e,r++,t)}return{value:void 0,done:!0}})},kr.isStack=Ar;var Tr,Dr="@@__IMMUTABLE_STACK__@@",Ir=kr.prototype;function Pr(e,t,r,n){var o=Object.create(Ir);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function Lr(){return Tr||(Tr=Pr(0))}function Mr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Ir[Dr]=!0,Ir.withMutations=He.withMutations,Ir.asMutable=He.asMutable,Ir.asImmutable=He.asImmutable,Ir.wasAltered=He.wasAltered,r.Iterator=R,Mr(r,{toArray:function(){Ne(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Bt(this,!0)},toMap:function(){return Fe(this.toKeyedSeq())},toObject:function(){Ne(this.size);var e={};return this.__iterate(function(t,r){var n;"string"==typeof(n=r)&&("__proto__"===n||"constructor"===n)||(e[r]=t)}),e},toOrderedMap:function(){return Mt(this.toKeyedSeq())},toOrderedSet:function(){return Sr(s(this)?this.valueSeq():this)},toSet:function(){return fr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Kt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return kr(s(this)?this.valueSeq():this)},toList:function(){return ht(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return er(this,function(e,t){var r=s(e),o=[e].concat(t).map(function(e){return a(e)?r&&(e=n(e)):e=r?ne(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||r&&s(i)||c(e)&&c(i))return i}var u=new Z(o);return r?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),u}(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return pe(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){Ne(this.size);var r=!0;return this.__iterate(function(n,o,i){if(!e.call(t,n,o,i))return r=!1,!1}),r},filter:function(e,t){return er(this,Gt(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},forEach:function(e,t){return Ne(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ne(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!=n?n.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return er(this,Vt(this,e,t))},reduce:function(e,t,r){var n,o;return Ne(this.size),arguments.length<2?o=!0:n=t,this.__iterate(function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return er(this,qt(this,!0))},slice:function(e,t){return er(this,Wt(this,e,t,!0))},some:function(e,t){return!this.every(Br(e),t)},sort:function(e){return er(this,Xt(this,e))},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(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=Fe().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Z(e._cache);var t=e.toSeq().map(Fr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Br(e),t)},findEntry:function(e,t,r){var n=r;return this.__iterate(function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1}),n},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},findLastEntry:function(e,t,r){return this.toKeyedSeq().reverse().findEntry(e,t,r)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(k)},flatMap:function(e,t){return er(this,function(e,t,r){var n=nr(e);return e.toSeq().map(function(o,i){return n(t.call(r,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return er(this,Yt(this,e,!0))},fromEntrySeq:function(){return new Ht(this)},get:function(e,t){return this.find(function(t,r){return pe(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,o=sr(e);!(r=o.next()).done;){var i=r.value;if((n=n&&n.get?n.get(i,b):b)===b)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=s(e),o=(l(e)?Mt():Fe()).asMutable();e.__iterate(function(i,a){o.update(t.call(r,i,a,e),function(e){return(e=e||[]).push(n?[a,i]:i),e})});var i=nr(e);return o.map(function(t){return er(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return pe(t,e)})},keySeq:function(){return this.toSeq().map(Nr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Zt(this,e)},maxBy:function(e,t){return Zt(this,t,e)},min:function(e){return Zt(this,e?Ur(e):zr)},minBy:function(e,t){return Zt(this,t?Ur(t):zr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return er(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return er(this,$t(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Br(e),t)},sortBy:function(e,t){return er(this,Xt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return er(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return er(this,function(e,t,r){var n=or(e);return n.__iterateUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterate(n,o);var a=0;return e.__iterate(function(e,o,s){return t.call(r,e,o,s)&&++a&&n(e,o,i)}),a},n.__iteratorUncached=function(n,o){var i=this;if(o)return this.cacheResult().__iterator(n,o);var a=e.__iterator(2,o),s=!0;return new R(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(r,u,c,i)?2===n?e:j(n,c,u,e):(s=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Br(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),r=s(e),n=t?1:0,o=e.__iterate(r?t?function(e,t){n=31*n+Vr(Ee(e),Ee(t))|0}:function(e,t){n=n+Vr(Ee(e),Ee(t))|0}:t?function(e){n=31*n+Ee(e)|0}:function(e){n=n+Ee(e)|0});return function(e,t){return t=Se(t,3432918353),t=Se(t<<15|t>>>-15,461845907),t=Se(t<<13|t>>>-13,5),t=Se((t=(t+3864292196|0)^e)^t>>>16,2246822507),xe((t=Se(t^t>>>13,3266489909))^t>>>16)}(o,n)}(this))}});var Rr=r.prototype;Rr[d]=!0,Rr[M]=Rr.values,Rr.__toJS=Rr.toArray,Rr.__toStringMapper=Kr,Rr.inspect=Rr.toSource=function(){return this.toString()},Rr.chain=Rr.flatMap,Rr.contains=Rr.includes,Mr(n,{flip:function(){return er(this,zt(this))},mapEntries:function(e,t){var r=this,n=0;return er(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return er(this,this.toSeq().flip().map(function(n,o){return e.call(t,n,o,r)}).flip())}});var jr=n.prototype;function Nr(e,t){return t}function Fr(e,t){return[t,e]}function Br(e){return function(){return!e.apply(this,arguments)}}function Ur(e){return function(){return-e.apply(this,arguments)}}function Kr(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Hr(){return _(arguments)}function zr(e,t){return e<t?1:e>t?-1:0}function Vr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return jr[p]=!0,jr[M]=Rr.entries,jr.__toJS=Rr.toObject,jr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Kr(e)},Mr(o,{toKeyedSeq:function(){return new Bt(this,!1)},filter:function(e,t){return er(this,Gt(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return er(this,qt(this,!1))},slice:function(e,t){return er(this,Wt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=T(e,e<0?this.count():this.size);var n=this.slice(0,e);return er(this,1===r?n:n.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.findLastEntry(e,t);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(e){return er(this,Yt(this,e,!1))},get:function(e,t){return(e=C(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=C(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return er(this,function(e,t){var r=or(e);return r.size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var o=this,i=0;return e.__iterate(function(e,n){return(!i||!1!==r(t,i++,o))&&!1!==r(e,i++,o)},n),i},r.__iteratorUncached=function(r,n){var o,i=e.__iterator(1,n),a=0;return new R(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?j(r,a++,t):j(r,a++,o.value,o)})},r}(this,e))},interleave:function(){var e=[this].concat(_(arguments)),t=Qt(this.toSeq(),q.of,e),r=t.flatten(!0);return t.size&&(r.size=t.size*e.length),er(this,r)},keySeq:function(){return me(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return er(this,$t(this,e,t,!1))},zip:function(){return er(this,Qt(this,Hr,[this].concat(_(arguments))))},zipWith:function(e){var t=_(arguments);return t[0]=this,er(this,Qt(this,e,t))}}),o.prototype[f]=!0,o.prototype[h]=!0,Mr(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Rr.includes,i.prototype.contains=i.prototype.includes,Mr(V,n.prototype),Mr(q,o.prototype),Mr(G,i.prototype),Mr(be,n.prototype),Mr(ve,o.prototype),Mr(we,i.prototype),{Iterable:r,Seq:z,Collection:ye,Map:Fe,OrderedMap:Mt,List:ht,Stack:kr,Set:fr,OrderedSet:Sr,Record:cr,Range:me,Repeat:he,is:pe,fromJS:ce}}()},5580(e,t,r){var n=r(6110)(r(9325),"DataView");e.exports=n},1549(e,t,r){var n=r(2032),o=r(3862),i=r(6721),a=r(2749),s=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},79(e,t,r){var n=r(3702),o=r(80),i=r(4739),a=r(8655),s=r(1175);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},8223(e,t,r){var n=r(6110)(r(9325),"Map");e.exports=n},3661(e,t,r){var n=r(3040),o=r(7670),i=r(289),a=r(4509),s=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},2804(e,t,r){var n=r(6110)(r(9325),"Promise");e.exports=n},6545(e,t,r){var n=r(6110)(r(9325),"Set");e.exports=n},8859(e,t,r){var n=r(3661),o=r(1380),i=r(1459);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217(e,t,r){var n=r(79),o=r(1420),i=r(938),a=r(3605),s=r(9817),c=r(945);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},1873(e,t,r){var n=r(9325).Symbol;e.exports=n},7828(e,t,r){var n=r(9325).Uint8Array;e.exports=n},8303(e,t,r){var n=r(6110)(r(9325),"WeakMap");e.exports=n},1033(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},3729(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},9770(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},5325(e,t,r){var n=r(6131);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},9905(e){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},695(e,t,r){var n=r(8096),o=r(2428),i=r(6449),a=r(3656),s=r(361),c=r(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),d=!r&&!l&&a(e),p=!r&&!l&&!d&&c(e),f=r||l||d||p,h=f?n(e.length,String):[],g=h.length;for(var m in e)!t&&!u.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},4932(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},4528(e){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},882(e){e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}},4248(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},1733(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},7805(e,t,r){var n=r(3360),o=r(5288);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},6547(e,t,r){var n=r(3360),o=r(5288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},6025(e,t,r){var n=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4733(e,t,r){var n=r(1791),o=r(5950);e.exports=function(e,t){return e&&n(t,o(t),e)}},3838(e,t,r){var n=r(1791),o=r(7241);e.exports=function(e,t){return e&&n(t,o(t),e)}},3360(e,t,r){var n=r(3243);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9999(e,t,r){var n=r(7217),o=r(3729),i=r(6547),a=r(4733),s=r(3838),c=r(3290),u=r(3007),l=r(2271),d=r(8948),p=r(2),f=r(3349),h=r(5861),g=r(6189),m=r(7199),y=r(5529),b=r(6449),v=r(3656),w=r(7730),S=r(3805),x=r(8440),E=r(5950),_=r(7241),O="[object Arguments]",C="[object Function]",k="[object Object]",A={};A[O]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[k]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,T,D,I,P){var L,M=1&r,R=2&r,j=4&r;if(T&&(L=I?T(t,D,I,P):T(t)),void 0!==L)return L;if(!S(t))return t;var N=b(t);if(N){if(L=g(t),!M)return u(t,L)}else{var F=h(t),B=F==C||"[object GeneratorFunction]"==F;if(v(t))return c(t,M);if(F==k||F==O||B&&!I){if(L=R||B?{}:y(t),!M)return R?d(t,s(L,t)):l(t,a(L,t))}else{if(!A[F])return I?t:{};L=m(t,F,M)}}P||(P=new n);var U=P.get(t);if(U)return U;P.set(t,L),x(t)?t.forEach(function(n){L.add(e(n,r,T,n,t,P))}):w(t)&&t.forEach(function(n,o){L.set(o,e(n,r,T,o,t,P))});var K=N?void 0:(j?R?f:p:R?_:E)(t);return o(K||t,function(n,o){K&&(n=t[o=n]),i(L,o,e(n,r,T,o,t,P))}),L}},9344(e,t,r){var n=r(3805),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},2523(e){e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},3120(e,t,r){var n=r(4528),o=r(5891);e.exports=function e(t,r,i,a,s){var c=-1,u=t.length;for(i||(i=o),s||(s=[]);++c<u;){var l=t[c];r>0&&i(l)?r>1?e(l,r-1,i,a,s):n(s,l):a||(s[s.length]=l)}return s}},6649(e,t,r){var n=r(3221)();e.exports=n},7422(e,t,r){var n=r(1769),o=r(7797);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},2199(e,t,r){var n=r(4528),o=r(6449);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},2552(e,t,r){var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},6131(e,t,r){var n=r(2523),o=r(5463),i=r(6959);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},7534(e,t,r){var n=r(2552),o=r(346);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},270(e,t,r){var n=r(7068),o=r(346);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},7068(e,t,r){var n=r(7217),o=r(5911),i=r(1986),a=r(689),s=r(5861),c=r(6449),u=r(3656),l=r(7167),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,g,m,y){var b=c(e),v=c(t),w=b?p:s(e),S=v?p:s(t),x=(w=w==d?f:w)==f,E=(S=S==d?f:S)==f,_=w==S;if(_&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(_&&!x)return y||(y=new n),b||l(e)?o(e,t,r,g,m,y):i(e,t,w,r,g,m,y);if(!(1&r)){var O=x&&h.call(e,"__wrapped__"),C=E&&h.call(t,"__wrapped__");if(O||C){var k=O?e.value():e,A=C?t.value():t;return y||(y=new n),m(k,A,r,g,y)}}return!!_&&(y||(y=new n),a(e,t,r,g,m,y))}},9172(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},1799(e,t,r){var n=r(7217),o=r(270);e.exports=function(e,t,r,i){var a=r.length,s=a,c=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=r[a];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var l=(u=r[a])[0],d=e[l],p=u[1];if(c&&u[2]){if(void 0===d&&!(l in e))return!1}else{var f=new n;if(i)var h=i(d,p,l,e,t,f);if(!(void 0===h?o(p,d,3,i,f):h))return!1}}return!0}},5463(e){e.exports=function(e){return e!=e}},5083(e,t,r){var n=r(1882),o=r(7296),i=r(3805),a=r(7473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},6038(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},4901(e,t,r){var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},7770(e,t,r){var n=r(3663),o=r(7978),i=r(3488),a=r(6449),s=r(583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):s(e)}},8984(e,t,r){var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},2903(e,t,r){var n=r(3805),o=r(5527),i=r(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},3663(e,t,r){var n=r(1799),o=r(776),i=r(7197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},7978(e,t,r){var n=r(270),o=r(8156),i=r(631),a=r(8586),s=r(756),c=r(7197),u=r(7797);e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},5250(e,t,r){var n=r(7217),o=r(7805),i=r(6649),a=r(2824),s=r(3805),c=r(7241),u=r(4974);e.exports=function e(t,r,l,d,p){t!==r&&i(r,function(i,c){if(p||(p=new n),s(i))a(t,r,c,l,e,d,p);else{var f=d?d(u(t,c),i,c+"",t,r,p):void 0;void 0===f&&(f=i),o(t,c,f)}},c)}},2824(e,t,r){var n=r(7805),o=r(3290),i=r(1961),a=r(3007),s=r(5529),c=r(2428),u=r(6449),l=r(3693),d=r(3656),p=r(1882),f=r(3805),h=r(1331),g=r(7167),m=r(4974),y=r(9884);e.exports=function(e,t,r,b,v,w,S){var x=m(e,r),E=m(t,r),_=S.get(E);if(_)n(e,r,_);else{var O=w?w(x,E,r+"",e,t,S):void 0,C=void 0===O;if(C){var k=u(E),A=!k&&d(E),T=!k&&!A&&g(E);O=E,k||A||T?u(x)?O=x:l(x)?O=a(x):A?(C=!1,O=o(E,!0)):T?(C=!1,O=i(E,!0)):O=[]:h(E)||c(E)?(O=x,c(x)?O=y(x):f(x)&&!p(x)||(O=s(E))):C=!1}C&&(S.set(E,O),v(O,E,b,w,S),S.delete(E)),n(e,r,O)}}},7237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255(e,t,r){var n=r(7422);e.exports=function(e){return function(t){return n(t,e)}}},4552(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},9302(e,t,r){var n=r(3488),o=r(6757),i=r(2865);e.exports=function(e,t){return i(o(e,t,n),e+"")}},9570(e,t,r){var n=r(7334),o=r(3243),i=r(3488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},5160(e){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},8096(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7556(e,t,r){var n=r(1873),o=r(4932),i=r(6449),a=r(4394),s=n?n.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},4128(e,t,r){var n=r(1800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7301(e){e.exports=function(e){return function(t){return e(t)}}},5765(e,t,r){var n=r(8859),o=r(5325),i=r(9905),a=r(9219),s=r(4517),c=r(4247);e.exports=function(e,t,r){var u=-1,l=o,d=e.length,p=!0,f=[],h=f;if(r)p=!1,l=i;else if(d>=200){var g=t?null:s(e);if(g)return c(g);p=!1,l=a,h=new n}else h=t?[]:f;e:for(;++u<d;){var m=e[u],y=t?t(m):m;if(m=r||0!==m?m:0,p&&y==y){for(var b=h.length;b--;)if(h[b]===y)continue e;t&&h.push(y),f.push(m)}else l(h,y,r)||(h!==f&&h.push(y),f.push(m))}return f}},9931(e,t,r){var n=r(1769),o=r(8090),i=r(8969),a=r(7797),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=-1,c=(t=n(t,e)).length;if(!c)return!0;for(;++r<c;){var u=a(t[r]);if("__proto__"===u&&!s.call(e,"__proto__"))return!1;if(("constructor"===u||"prototype"===u)&&r<c-1)return!1}var l=i(e,t);return null==l||delete l[a(o(t))]}},514(e,t,r){var n=r(4932);e.exports=function(e,t){return n(t,function(t){return e[t]})}},9219(e){e.exports=function(e,t){return e.has(t)}},1769(e,t,r){var n=r(6449),o=r(8586),i=r(1802),a=r(3222);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},9653(e,t,r){var n=r(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},3290(e,t,r){e=r.nmd(e);var n=r(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},6169(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},3201(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},3736(e,t,r){var n=r(1873),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},1961(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},3007(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},1791(e,t,r){var n=r(6547),o=r(3360);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),a?o(r,u,l):n(r,u,l)}return r}},2271(e,t,r){var n=r(1791),o=r(4664);e.exports=function(e,t){return n(e,o(e),t)}},8948(e,t,r){var n=r(1791),o=r(6375);e.exports=function(e,t){return n(e,o(e),t)}},5481(e,t,r){var n=r(9325)["__core-js_shared__"];e.exports=n},999(e,t,r){var n=r(9302),o=r(6800);e.exports=function(e){return n(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var c=r[n];c&&e(t,c,n,a)}return t})}},3221(e){e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}},5539(e,t,r){var n=r(882),o=r(828),i=r(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(a,"")),e,"")}}},4517(e,t,r){var n=r(6545),o=r(3950),i=r(4247),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},3138(e,t,r){var n=r(1331);e.exports=function(e){return n(e)?void 0:e}},4647(e,t,r){var n=r(4552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"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",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},3243(e,t,r){var n=r(6110),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5911(e,t,r){var n=r(8859),o=r(4248),i=r(9219);e.exports=function(e,t,r,a,s,c){var u=1&r,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var h=-1,g=!0,m=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var y=e[h],b=t[h];if(a)var v=u?a(b,y,h,t,e,c):a(y,b,h,e,t,c);if(void 0!==v){if(v)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(y===e||s(y,e,r,a,c)))return m.push(t)})){g=!1;break}}else if(y!==b&&!s(y,b,r,a,c)){g=!1;break}}return c.delete(e),c.delete(t),g}},1986(e,t,r){var n=r(1873),o=r(7828),i=r(5288),a=r(5911),s=r(317),c=r(4247),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&n;if(f||(f=c),e.size!=t.size&&!h)return!1;var g=p.get(e);if(g)return g==t;n|=2,p.set(e,t);var m=a(f(e),f(t),n,u,d,p);return p.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},689(e,t,r){var n=r(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,s){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var d=l;d--;){var p=u[d];if(!(c?p in t:o.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=c;++d<l;){var y=e[p=u[d]],b=t[p];if(i)var v=c?i(b,y,p,t,e,s):i(y,b,p,e,t,s);if(!(void 0===v?y===b||a(y,b,r,i,s):v)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}},8816(e,t,r){var n=r(5970),o=r(6757),i=r(2865);e.exports=function(e){return i(o(e,void 0,n),e+"")}},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,r){var n=r(2199),o=r(4664),i=r(5950);e.exports=function(e){return n(e,i,o)}},3349(e,t,r){var n=r(2199),o=r(6375),i=r(7241);e.exports=function(e){return n(e,i,o)}},2651(e,t,r){var n=r(4218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},776(e,t,r){var n=r(756),o=r(5950);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},6110(e,t,r){var n=r(5083),o=r(392);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},8879(e,t,r){var n=r(4335)(Object.getPrototypeOf,Object);e.exports=n},659(e,t,r){var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},4664(e,t,r){var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},6375(e,t,r){var n=r(4528),o=r(8879),i=r(4664),a=r(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},5861(e,t,r){var n=r(5580),o=r(8223),i=r(2804),a=r(6545),s=r(8303),c=r(2552),u=r(7473),l="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=u(n),m=u(o),y=u(i),b=u(a),v=u(s),w=c;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=f)&&(w=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case g:return h;case m:return l;case y:return d;case b:return p;case v:return f}return t}),e.exports=w},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},9326(e,t,r){var n=r(1769),o=r(2428),i=r(6449),a=r(361),s=r(294),c=r(7797);e.exports=function(e,t,r){for(var u=-1,l=(t=n(t,e)).length,d=!1;++u<l;){var p=c(t[u]);if(!(d=null!=e&&r(e,p)))break;e=e[p]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(i(e)||o(e))}},5434(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},2032(e,t,r){var n=r(1042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},2749(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},5749(e,t,r){var n=r(1042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},6189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},7199(e,t,r){var n=r(9653),o=r(6169),i=r(3201),a=r(3736),s=r(1961);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},5529(e,t,r){var n=r(9344),o=r(8879),i=r(5527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},5891(e,t,r){var n=r(1873),o=r(2428),i=r(6449),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6800(e,t,r){var n=r(5288),o=r(4894),i=r(361),a=r(3805);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},8586(e,t,r){var n=r(6449),o=r(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},756(e,t,r){var n=r(3805);e.exports=function(e){return e==e&&!n(e)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var n=r(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},4739(e,t,r){var n=r(6025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var n=r(6025);e.exports=function(e){return n(this.__data__,e)>-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},7197(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},2224(e,t,r){var n=r(104);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},6757(e,t,r){var n=r(1033),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(c),n(e,this,u)}}},8969(e,t,r){var n=r(7422),o=r(5160);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},4974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},2865(e,t,r){var n=r(9570),o=r(1811)(n);e.exports=o},1811(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},6959(e){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},1802(e,t,r){var n=r(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t});e.exports=a},7797(e,t,r){var n=r(4394);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},2225(e){var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+i+"]",s="\\d+",c="["+r+"]",u="["+n+"]",l="[^"+t+i+s+r+n+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+o+"]",h="(?:"+u+"|"+l+")",g="(?:"+f+"|"+l+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+b+"(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+v+b+")*",S="(?:"+[c,d,p].join("|")+")"+w,x=RegExp([f+"?"+u+"+"+m+"(?="+[a,f,"$"].join("|")+")",g+"+"+y+"(?="+[a,f+h,"$"].join("|")+")",f+"?"+h+"+"+m,f+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,S].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},7334(e){e.exports=function(e){return function(){return e}}},8221(e,t,r){var n=r(3805),o=r(124),i=r(9374),a=Math.max,s=Math.min;e.exports=function(e,t,r){var c,u,l,d,p,f,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=c,n=u;return c=u=void 0,h=t,d=e.apply(n,r)}function v(e){var r=e-f;return void 0===f||r>=t||r<0||m&&e-h>=l}function w(){var e=o();if(v(e))return S(e);p=setTimeout(w,function(e){var r=t-(e-f);return m?s(r,l-(e-h)):r}(e))}function S(e){return p=void 0,y&&c?b(e):(c=u=void 0,d)}function x(){var e=o(),r=v(e);if(c=arguments,u=this,f=e,r){if(void 0===p)return function(e){return h=e,p=setTimeout(w,t),g?b(e):d}(f);if(m)return clearTimeout(p),p=setTimeout(w,t),b(f)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,n(r)&&(g=!!r.leading,l=(m="maxWait"in r)?a(i(r.maxWait)||0,t):l,y="trailing"in r?!!r.trailing:y),x.cancel=function(){void 0!==p&&clearTimeout(p),h=0,c=f=u=p=void 0},x.flush=function(){return void 0===p?d:S(o())},x}},828(e,t,r){var n=r(4647),o=r(3222),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5970(e,t,r){var n=r(3120);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},8156(e,t,r){var n=r(7422);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},631(e,t,r){var n=r(8077),o=r(9326);e.exports=function(e,t){return null!=e&&o(e,t,n)}},3488(e){e.exports=function(e){return e}},9859(e,t,r){var n=r(6131),o=r(4894),i=r(5015),a=r(1489),s=r(5880),c=Math.max;e.exports=function(e,t,r,u){e=o(e)?e:s(e),r=r&&!u?a(r):0;var l=e.length;return r<0&&(r=c(l+r,0)),i(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&n(e,t,r)>-1}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3693(e,t,r){var n=r(4894),o=r(346);e.exports=function(e){return o(e)&&n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},2193(e,t,r){var n=r(8984),o=r(5861),i=r(2428),a=r(6449),s=r(4894),c=r(3656),u=r(5527),l=r(7167),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1331(e,t,r){var n=r(2552),o=r(8879),i=r(346),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},5015(e,t,r){var n=r(2552),o=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},4394(e,t,r){var n=r(2552),o=r(346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},8090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5321(e,t,r){var n=r(5539)(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()});e.exports=n},104(e,t,r){var n=r(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5364(e,t,r){var n=r(5250),o=r(999)(function(e,t,r){n(e,t,r)});e.exports=o},6924(e,t,r){var n=r(5250),o=r(999)(function(e,t,r,o){n(e,t,r,o)});e.exports=o},3950(e){e.exports=function(){}},124(e,t,r){var n=r(9325);e.exports=function(){return n.Date.now()}},179(e,t,r){var n=r(4932),o=r(9999),i=r(9931),a=r(1769),s=r(1791),c=r(3138),u=r(8816),l=r(3349),d=u(function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,l(e),r),u&&(r=o(r,7,c));for(var d=t.length;d--;)i(r,t[d]);return r});e.exports=d},583(e,t,r){var n=r(7237),o=r(7255),i=r(8586),a=r(7797);e.exports=function(e){return i(e)?n(a(e)):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},7400(e,t,r){var n=r(9374),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489(e,t,r){var n=r(7400);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},9374(e,t,r){var n=r(4128),o=r(3805),i=r(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):a.test(e)?NaN:+e}},9884(e,t,r){var n=r(1791),o=r(7241);e.exports=function(e){return n(e,o(e))}},3222(e,t,r){var n=r(7556);e.exports=function(e){return null==e?"":n(e)}},9786(e,t,r){var n=r(3120),o=r(7770),i=r(9302),a=r(5765),s=r(3693),c=r(8090),u=i(function(e){var t=c(e);return s(t)&&(t=void 0),a(n(e,1,s,!0),o(t,2))});e.exports=u},7200(e,t,r){var n=r(3222),o=0;e.exports=function(e){var t=++o;return n(e)+t}},5880(e,t,r){var n=r(514),o=r(5950);e.exports=function(e){return null==e?[]:n(e,o(e))}},6645(e,t,r){var n=r(1733),o=r(5434),i=r(3222),a=r(2225);e.exports=function(e,t,r){return e=i(e),void 0===(t=r?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},5228(e){var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var l=0;l<a.length;l++)n.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},115(e){var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,c,u,l=t(e),d=t(a);if(l&&d){if((c=e.length)!=a.length)return!1;for(s=c;0!==s--;)if(!i(e[s],a[s]))return!1;return!0}if(l!=d)return!1;var p=e instanceof Date,f=a instanceof Date;if(p!=f)return!1;if(p&&f)return e.getTime()==a.getTime();var h=e instanceof RegExp,g=a instanceof RegExp;if(h!=g)return!1;if(h&&g)return e.toString()==a.toString();var m=r(e);if((c=m.length)!==r(a).length)return!1;for(s=c;0!==s--;)if(!n.call(a,m[s]))return!1;if(o&&e instanceof Element&&a instanceof Element)return e===a;for(s=c;0!==s--;)if(!("_owner"===(u=m[s])&&e.$$typeof||i(e[u],a[u])))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},2799(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case g:case c:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||S(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},4363(e,t,r){e.exports=r(2799)},2791(){!function(e){if(!e.setImmediate){var t,r,n,o,i,a=1,s={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){p(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){p(e.data)},t=function(e){n.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,t=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):t=function(e){setTimeout(p,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var o={callback:e,args:r};return s[a]=o,t(a),a++},l.clearImmediate=d}function d(e){delete s[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=s[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?"undefined"==typeof globalThis?this:globalThis:self)},9423(e,t,r){r.d(t,{A:()=>n}),e=r.hmd(e);const n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:e)},818(e){e.exports=function(e,t){t=t||{};var r,n,o,i=e.ownerDocument||e,a=[],s=[],c=function(e){var t=[];function r(n,o){if(n===e.documentElement)return!1;for(var i=0,a=t.length;i<a;i++)if(t[i][0]===n)return t[i][1];var s=!1;return"none"===(o=o||e.defaultView.getComputedStyle(n)).display?s=!0:n.parentNode&&(s=r(n.parentNode)),t.push([n,s]),s}return function(t){if(t===e.documentElement)return!1;var n=e.defaultView.getComputedStyle(t);return!!r(t,n)||"hidden"===n.visibility}}(i),u=["input","select","a[href]","textarea","button","[tabindex]"],l=e.querySelectorAll(u.join(","));if(t.includeContainer){var d=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;u.some(function(t){return d.call(e,t)})&&(l=Array.prototype.slice.apply(l)).unshift(e)}for(var p=0,f=l.length;p<f;p++)r=l[p],n=parseInt(r.getAttribute("tabindex"),10),(o=isNaN(n)?r.tabIndex:n)<0||"INPUT"===r.tagName&&"hidden"===r.type||r.disabled||c(r,i)||(0===o?a.push(r):s.push({index:p,tabIndex:o,node:r}));var h=s.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},7232(e,t,r){var n;!function(o,i){var a="function",s="object",c="model",u="name",l="type",d="vendor",p="version",f="architecture",h="console",g="mobile",m="tablet",y="smarttv",b="wearable",v={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},w={rgx:function(e,t){for(var r,n,o,c,u,l,d=0;d<t.length&&!u;){var p=t[d],f=t[d+1];for(r=n=0;r<p.length&&!u;)if(u=p[r++].exec(e))for(o=0;o<f.length;o++)l=u[++n],typeof(c=f[o])===s&&c.length>0?2==c.length?typeof c[1]==a?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3==c.length?typeof c[1]!==a||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):i:this[c[0]]=l?c[1].call(this,l,c[2]):i:4==c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):i):this[c]=l||i;d+=2}},str:function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(v.has(t[r][n],e))return"?"===r?i:r}else if(v.has(t[r],e))return"?"===r?i:r;return e}},S={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{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"}}}},x={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[u,p],[/(opios)[\/\s]+([\w\.]+)/i],[[u,"Opera Mini"],p],[/\s(opr)\/([\w\.]+)/i],[[u,"Opera"],p],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[u,p],[/(konqueror)\/([\w\.]+)/i],[[u,"Konqueror"],p],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[u,"IE"],p],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[u,"Edge"],p],[/(yabrowser)\/([\w\.]+)/i],[[u,"Yandex"],p],[/(Avast)\/([\w\.]+)/i],[[u,"Avast Secure Browser"],p],[/(AVG)\/([\w\.]+)/i],[[u,"AVG Secure Browser"],p],[/(puffin)\/([\w\.]+)/i],[[u,"Puffin"],p],[/(focus)\/([\w\.]+)/i],[[u,"Firefox Focus"],p],[/(opt)\/([\w\.]+)/i],[[u,"Opera Touch"],p],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[u,"UCBrowser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(windowswechat qbcore)\/([\w\.]+)/i],[[u,"WeChat(Win) Desktop"],p],[/(micromessenger)\/([\w\.]+)/i],[[u,"WeChat"],p],[/(brave)\/([\w\.]+)/i],[[u,"Brave"],p],[/(qqbrowserlite)\/([\w\.]+)/i],[u,p],[/(QQ)\/([\d\.]+)/i],[u,p],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[u,p],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[u,p],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[u,p],[/(MetaSr)[\/\s]?([\w\.]+)/i],[u],[/(LBBROWSER)/i],[u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[p,[u,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[u,p],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[u,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[u,/(.+)/,"$1 WebView"],p],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[u,/(.+(?:g|us))(.+)/,"$1 $2"],p],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[p,[u,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[u,"Sailfish Browser"],p],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[u,p],[/(dolfin)\/([\w\.]+)/i],[[u,"Dolphin"],p],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[u,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[u,"Chrome"],p],[/(coast)\/([\w\.]+)/i],[[u,"Opera Coast"],p],[/fxios\/([\w\.-]+)/i],[p,[u,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[p,u],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[u,"GSA"],p],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[u,[p,w.str,S.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[u,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[u,"Netscape"],p],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[u,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,v.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[f,/ower/,"",v.lowerize]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[f,v.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[c,d,[l,m]],[/applecoremedia\/[\w\.]+ \((ipad)/],[c,[d,"Apple"],[l,m]],[/(apple\s{0,1}tv)/i],[[c,"Apple TV"],[d,"Apple"],[l,y]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[d,c,[l,m]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[c,[d,"Amazon"],[l,m]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[c,w.str,S.device.amazon.model],[d,"Amazon"],[l,g]],[/android.+aft([bms])\sbuild/i],[c,[d,"Amazon"],[l,y]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[c,d,[l,g]],[/\((ip[honed|\s\w*]+);/i],[c,[d,"Apple"],[l,g]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[d,c,[l,g]],[/\(bb10;\s(\w+)/i],[c,[d,"BlackBerry"],[l,g]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[c,[d,"Asus"],[l,m]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[d,"Sony"],[c,"Xperia Tablet"],[l,m]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[d,"Sony"],[l,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[d,c,[l,h]],[/android.+;\s(shield)\sbuild/i],[c,[d,"Nvidia"],[l,h]],[/(playstation\s[34portablevi]+)/i],[c,[d,"Sony"],[l,h]],[/(sprint\s(\w+))/i],[[d,w.str,S.device.sprint.vendor],[c,w.str,S.device.sprint.model],[l,g]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[d,[c,/_/g," "],[l,g]],[/(nexus\s9)/i],[c,[d,"HTC"],[l,m]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[c,[d,"Huawei"],[l,g]],[/android.+(bah2?-a?[lw]\d{2})/i],[c,[d,"Huawei"],[l,m]],[/(microsoft);\s(lumia[\s\w]+)/i],[d,c,[l,g]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[c,[d,"Microsoft"],[l,h]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,"Microsoft"],[l,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[c,[d,"Motorola"],[l,g]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[c,[d,"Motorola"],[l,m]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[d,v.trim],[c,v.trim],[l,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,"Samsung"],[l,y]],[/\(dtv[\);].+(aquos)/i],[c,[d,"Sharp"],[l,y]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[d,"Samsung"],c,[l,m]],[/smart-tv.+(samsung)/i],[d,[l,y],c],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[d,"Samsung"],c,[l,g]],[/sie-(\w*)/i],[c,[d,"Siemens"],[l,g]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[d,"Nokia"],c,[l,g]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[c,[d,"Acer"],[l,m]],[/android.+([vl]k\-?\d{3})\s+build/i],[c,[d,"LG"],[l,m]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[d,"LG"],c,[l,m]],[/(lg) netcast\.tv/i],[d,c,[l,y]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[c,[d,"LG"],[l,g]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[d,c,[l,m]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[c,[d,"Lenovo"],[l,m]],[/(lenovo)[_\s-]?([\w-]+)/i],[d,c,[l,g]],[/linux;.+((jolla));/i],[d,c,[l,g]],[/((pebble))app\/[\d\.]+\s/i],[d,c,[l,b]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[d,c,[l,g]],[/crkey/i],[[c,"Chromecast"],[d,"Google"],[l,y]],[/android.+;\s(glass)\s\d/i],[c,[d,"Google"],[l,b]],[/android.+;\s(pixel c)[\s)]/i],[c,[d,"Google"],[l,m]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[c,[d,"Google"],[l,g]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,g]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[c,/_/g," "],[d,"Xiaomi"],[l,m]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[c,[d,"Meizu"],[l,g]],[/(mz)-([\w-]{2,})/i],[[d,"Meizu"],c,[l,g]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[c,[d,"OnePlus"],[l,g]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[c,[d,"RCA"],[l,m]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[c,[d,"Dell"],[l,m]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[c,[d,"Verizon"],[l,m]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[d,"Barnes & Noble"],c,[l,m]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[c,[d,"NuVision"],[l,m]],[/android.+;\s(k88)\sbuild/i],[c,[d,"ZTE"],[l,m]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[c,[d,"Swiss"],[l,g]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[c,[d,"Swiss"],[l,m]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[c,[d,"Zeki"],[l,m]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[d,"Dragon Touch"],c,[l,m]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[c,[d,"Insignia"],[l,m]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[c,[d,"NextBook"],[l,m]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[d,"Voice"],c,[l,g]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[d,"LvTel"],c,[l,g]],[/android.+;\s(PH-1)\s/i],[c,[d,"Essential"],[l,g]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[c,[d,"Envizen"],[l,m]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[d,c,[l,m]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[c,[d,"MachSpeed"],[l,m]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[d,c,[l,m]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[c,[d,"Rotor"],[l,m]],[/android.+(KS(.+))\s+build/i],[c,[d,"Amazon"],[l,m]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[d,c,[l,m]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,v.lowerize],d,c],[/[\s\/\(](smart-?tv)[;\)]/i],[[l,y]],[/(android[\w\.\s\-]{0,9});.+build/i],[c,[d,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[u,p],[/rv\:([\w\.]{1,9}).+(gecko)/i],[p,u]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[u,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[u,[p,w.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[u,"Windows"],[p,w.str,S.os.windows.version]],[/\((bb)(10);/i],[[u,"BlackBerry"],p],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[u,p],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[u,"Symbian"],p],[/\((series40);/i],[u],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[u,"Firefox OS"],p],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[u,p],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(sunos)\s?([\w\.\d]*)/i],[[u,"Solaris"],p],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[u,p],[/(haiku)\s(\w+)/i],[u,p],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[u,p]]},E=function(e,t){if("object"==typeof e&&(t=e,e=i),!(this instanceof E))return new E(e,t).getResult();var r=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?v.extend(x,t):x;return this.getBrowser=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.browser),e.major=v.major(e.version),e},this.getCPU=function(){var e={architecture:i};return w.rgx.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return w.rgx.call(e,r,n.device),e},this.getEngine=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.engine),e},this.getOS=function(){var e={name:i,version:i};return w.rgx.call(e,r,n.os),e},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 r},this.setUA=function(e){return r=e,this},this};E.VERSION="0.7.21",E.BROWSER={NAME:u,MAJOR:"major",VERSION:p},E.CPU={ARCHITECTURE:f},E.DEVICE={MODEL:c,VENDOR:d,TYPE:l,CONSOLE:h,MOBILE:g,SMARTTV:y,TABLET:m,WEARABLE:b,EMBEDDED:"embedded"},E.ENGINE={NAME:u,VERSION:p},E.OS={NAME:u,VERSION:p},void 0!==t?(e.exports&&(t=e.exports=E),t.UAParser=E):(n=function(){return E}.call(t,r,t,e))===i||(e.exports=n);var _=o&&(o.jQuery||o.Zepto);if(_&&!_.ua){var O=new E;_.ua=O.getResult(),_.ua.get=function(){return O.getUA()},_.ua.set=function(e){O.setUA(e);var t=O.getResult();for(var r in t)_.ua[r]=t[r]}}}("object"==typeof window?window:this)},2015(e){e.exports=require("react")},2326(e){e.exports=require("react-dom")}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t,r){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var f=l(8156),h=l.n(f);let g=function(e){return e.DRAWING="drawing",e.HIGHLIGHT="highlight",e.NONE="none",e.REGION="region",e}({});function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(null,arguments)}function y(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function b(e){return!!e&&!!e[Q]}function v(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}(e)||Array.isArray(e)||!!e[J]||!!e.constructor[J]||_(e)||O(e))}function w(e,t){0===S(e)?ee(e).forEach(function(r){return t(r,e[r],e)}):e.forEach(function(r,n){return t(n,r,e)})}function S(e){var t=e[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_(e)?2:O(e)?3:0}function x(e,t){return 2===S(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function _(e){return $&&e instanceof Map}function O(e){return Y&&e instanceof Set}function C(e){return e.o||e.t}function k(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var r=Object.create(Object.getPrototypeOf(e));return w(e,function(n){if(n!==Q){var o=Object.getOwnPropertyDescriptor(e,n),i=o.value;o.get&&(t||y(1),i=o.get.call(e)),o.enumerable?r[n]=i:Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0})}}),r}function A(e,t){b(e)||Object.isFrozen(e)||!v(e)||(S(e)>1&&(e.set=e.add=e.clear=e.delete=T),Object.freeze(e),t&&w(e,function(e,t){return A(t,!0)}))}function T(){y(2)}function D(e){var t=te[e];return t||y(19,e),t}function I(){return G}function P(e,t){t&&(D("Patches"),e.u=[],e.s=[],e.v=t)}function L(e){M(e),e.p.forEach(j),e.p=null}function M(e){e===G&&(G=e.l)}function R(e){return G={p:[],l:G,h:e,m:!0,_:0}}function j(e){var t=e[Q];0===t.i||1===t.i?t.j():t.O=!0}function N(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||D("ES5").S(t,e,n),n?(r[Q].P&&(L(t),y(4)),v(e)&&(e=F(t,e),t.l||U(t,e)),t.u&&D("Patches").M(r[Q],e,t.u,t.s)):e=F(t,r,[]),L(t),t.u&&t.v(t.u,t.s),e!==Z?e:void 0}function F(e,t,r){if(Object.isFrozen(t))return t;var n=t[Q];if(!n)return w(t,function(o,i){return B(e,n,t,o,i,r)}),t;if(n.A!==e)return t;if(!n.P)return U(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=k(n.k,!0):n.o;w(o,function(t,i){return B(e,n,o,t,i,r)}),U(e,o,!1),r&&e.u&&D("Patches").R(n,r,e.u,e.s)}return n.o}function B(e,t,r,n,o,i){if(b(o)){var a=F(e,o,i&&t&&3!==t.i&&!x(t.D,n)?i.concat(n):void 0);if(c=n,u=a,2===(l=S(s=r))?s.set(c,u):3===l?(s.delete(c),s.add(u)):s[c]=u,!b(a))return;e.m=!1}var s,c,u,l;if((!t||!E(o,function(e,t){return 2===S(e)?e.get(t):e[t]}(t.t,n)))&&v(o)){if(!e.h.N&&e._<1)return;F(e,o),t&&t.A.l||U(e,o)}}function U(e,t,r){void 0===r&&(r=!1),e.h.N&&e.m&&A(t,r)}function K(e,t){var r=e[Q],n=Reflect.getOwnPropertyDescriptor(r?C(r):e,t);return n&&n.value}function H(e){if(!e.P){if(e.P=!0,0===e.i||1===e.i){var t=e.o=k(e.t);w(e.p,function(e,r){t[e]=r}),e.p=void 0}e.l&&H(e.l)}}function z(e){e.o||(e.o=k(e.t))}function V(e,t,r){var n=_(t)?D("MapSet").T(t,r):O(t)?D("MapSet").F(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:I(),P:!1,I:!1,D:{},l:t,t:e,k:null,p:{},o:null,j:null,C:!1},o=n,i=re;r&&(o=[n],i=ne);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):D("ES5").J(t,r);return(r?r.A:I()).p.push(n),n}var q,G,W="undefined"!=typeof Symbol,$="undefined"!=typeof Map,Y="undefined"!=typeof Set,X="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Z=W?Symbol("immer-nothing"):((q={})["immer-nothing"]=!0,q),J=W?Symbol("immer-draftable"):"__$immer_draftable",Q=W?Symbol("immer-state"):"__$immer_state",ee=(W&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames),te={},re={get:function(e,t){if(t===Q)return e;var r=e.p;if(!e.P&&x(r,t))return r[t];var n=C(e)[t];if(e.I||!v(n))return n;if(e.P){if(n!==K(e.t,t))return n;r=e.o}return r[t]=V(e.A.h,n,e)},has:function(e,t){return t in C(e)},ownKeys:function(e){return Reflect.ownKeys(C(e))},set:function(e,t,r){if(!e.P){var n=K(e.t,t);if(r?E(n,r)||r===e.p[t]:E(n,r)&&t in e.t)return!0;z(e),H(e)}return e.D[t]=!0,e.o[t]=r,!0},deleteProperty:function(e,t){return void 0!==K(e.t,t)||t in e.t?(e.D[t]=!1,z(e),H(e)):e.D[t]&&delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=C(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&(n.writable=!0,n.configurable=1!==e.i||"length"!==t),n},defineProperty:function(){y(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){y(12)}},ne={};w(re,function(e,t){ne[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ne.deleteProperty=function(e,t){return re.deleteProperty.call(this,e[0],t)},ne.set=function(e,t,r){return re.set.call(this,e[0],t,r,e[0])};var oe=function(){function e(e){this.g=X,this.N=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,r){if("function"==typeof e&&"function"!=typeof t){var n=t;t=e;var o=this;return function(e){var r=this;void 0===e&&(e=n);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return o.produce(e,function(e){var n;return(n=t).call.apply(n,[r,e].concat(a))})}}var i;if("function"!=typeof t&&y(6),void 0!==r&&"function"!=typeof r&&y(7),v(e)){var a=R(this),s=V(this,e,void 0),c=!0;try{i=t(s),c=!1}finally{c?L(a):M(a)}return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return P(a,r),N(e,a)},function(e){throw L(a),e}):(P(a,r),N(i,a))}if((i=t(e))!==Z)return void 0===i&&(i=e),this.N&&A(i,!0),i},t.produceWithPatches=function(e,t){var r,n,o=this;return"function"==typeof e?function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return o.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(n))})}:[this.produce(e,t,function(e,t){r=e,n=t}),r,n]},t.createDraft=function(e){v(e)||y(8);var t=R(this),r=V(this,e,void 0);return r[Q].C=!0,M(t),r},t.finishDraft=function(e,t){var r=(e&&e[Q]).A;return P(r,t),N(void 0,r)},t.setAutoFreeze=function(e){this.N=e},t.setUseProxies=function(e){X||y(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=D("Patches").U;return b(e)?o(e,t):this.produce(e,function(e){return o(e,t.slice(r+1))})},e}(),ie=new oe,ae=ie.produce;ie.produceWithPatches.bind(ie),ie.setAutoFreeze.bind(ie),ie.setUseProxies.bind(ie),ie.applyPatches.bind(ie),ie.createDraft.bind(ie),ie.finishDraft.bind(ie);const se=ae;var ce=l(9423),ue=function(){return Math.random().toString(36).substring(7).split("").join(".")},le={INIT:"@@redux/INIT"+ue(),REPLACE:"@@redux/REPLACE"+ue(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ue()}};function de(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(de)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++)(0,t[r])();return e}return p({type:le.INIT}),(n={dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,p({type:le.REPLACE})}})[ce.A]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[ce.A]=function(){return this},e},n}function pe(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function fe(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var i,a=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:le.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:le.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+le.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(r)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var n=!1,o={},s=0;s<a.length;s++){var c=a[s],u=r[c],l=e[c],d=u(l,t);if(void 0===d){var p=pe(c,t);throw new Error(p)}o[c]=d,n=n||d!==l}return(n=n||a.length!==Object.keys(e).length)?o:e}}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ge(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r}function me(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function ye(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(r,!0).forEach(function(t){he(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r,{dispatch:n=me.apply(void 0,i)(r.dispatch)})}}}function be(e,t){return e===t}function ve(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}!function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n]}(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:be,r=null,n=null;return function(){return function(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}(t,r,arguments)||(n=e.apply(null,arguments)),r=arguments,n}});var we=ve();we.withExtraArgument=ve;const Se=we;function xe(){return xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xe.apply(this,arguments)}var Ee="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?me:me.apply(null,arguments)};function _e(e){void 0===e&&(e={});var t=e,r=t.thunk,n=void 0===r||r,o=(t.immutableCheck,t.serializableCheck,[]);return n&&(function(e){return"boolean"==typeof e}(n)?o.push(Se):o.push(Se.withExtraArgument(n.extraArgument))),o}function Oe(e,t){function r(){if(t){var r=t.apply(void 0,arguments);if(!r)throw new Error("prepareAction did not return an object");return xe({type:e,payload:r.payload},"meta"in r&&{meta:r.meta},{},"error"in r&&{error:r.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(t){return t.type===e},r}function Ce(e,t){var r="function"==typeof t?function(e){var t={},r={addCase:function(e,n){var o="string"==typeof e?e:e.type;if(o in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[o]=n,r}};return e(r),t}(t):t;return function(t,n){return void 0===t&&(t=e),se(t,function(e){var t=r[n.type];return t?t(e,n):void 0})}}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var ke=["name","message","stack","code"],Ae=function(e){this.value=e},Te=function(e){if("object"==typeof e&&null!==e){var t={},r=ke,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};function De(e,t,r){var n=Oe(e+"/fulfilled",function(e,t,r){return{payload:e,meta:{arg:r,requestId:t}}}),o=Oe(e+"/pending",function(e,t){return{payload:void 0,meta:{arg:t,requestId:e}}}),i=Oe(e+"/rejected",function(e,t,r,n){var o=!!e&&"AbortError"===e.name,i=!!e&&"ConditionError"===e.name;return{payload:n,error:Te(e||"Rejected"),meta:{arg:r,requestId:t,aborted:o,condition:i}}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){}}}return e.prototype.abort=function(){},e}();return m(function(e){return function(s,c,u){var l,d=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),p=new a,f=new Promise(function(e,t){return p.signal.addEventListener("abort",function(){return t({name:"AbortError",message:l||"Aborted"})})});return m(function(){try{var a,l=function(e){return h?e:(r&&!r.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a)},h=!1,g=function(l,h){try{var g=function(){if(r&&r.condition&&!1===r.condition(e,{getState:c,extra:u}))throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return s(o(d,e)),Promise.resolve(Promise.race([f,Promise.resolve(t(e,{dispatch:s,getState:c,extra:u,requestId:d,signal:p.signal,rejectWithValue:function(e){return new Ae(e)}})).then(function(t){return t instanceof Ae?i(null,d,e,t.value):n(t,d,e)})])).then(function(e){a=e})}()}catch(e){return h(e)}return g&&g.then?g.then(void 0,h):g}(0,function(t){a=i(t,d,e)});return Promise.resolve(g&&g.then?g.then(l):l(g))}catch(e){return Promise.reject(e)}}(),{abort:function(e){l=e,p.abort()}})}},{pending:o,rejected:i,fulfilled:n})}!function(){function e(e,t){var r=e[Q];if(r&&!r.$){r.$=!0;var n=e[t];return r.$=!1,n}return e[t]}function t(e){e.P||(e.P=!0,e.l&&t(e.l))}function r(e){e.o||(e.o=n(e.t))}function n(e){var t=e&&e[Q];if(t){t.$=!0;var r=k(t.k,!0);return t.$=!1,r}return k(e)}function o(e){for(var r=e.length-1;r>=0;r--){var n=e[r][Q];if(!n.P)switch(n.i){case 5:a(n)&&t(n);break;case 4:i(n)&&t(n)}}}function i(e){for(var t=e.t,r=e.k,n=Object.keys(r),o=n.length-1;o>=0;o--){var i=n[o],a=t[i];if(void 0===a&&!x(t,i))return!0;var s=r[i],c=s&&s[Q];if(c?c.t!==a:!E(s,a))return!0}return n.length!==Object.keys(t).length}function a(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}function s(e){e.O&&y(3,JSON.stringify(C(e)))}var c={};!function(e,t){te[e]=t}("ES5",{J:function(o,i){var a=Array.isArray(o),u=n(o);w(u,function(n){!function(n,o,i){var a=c[o];a?a.enumerable=i:c[o]=a={enumerable:i,get:function(){return function(t,n){s(t);var o=e(C(t),n);return t.$?o:o===e(t.t,n)&&v(o)?(r(t),t.o[n]=V(t.A.h,o,t)):o}(this[Q],o)},set:function(n){!function(n,o,i){if(s(n),n.D[o]=!0,!n.P){if(E(i,e(C(n),o)))return;t(n),r(n)}n.o[o]=i}(this[Q],o,n)}},Object.defineProperty(n,o,a)}(u,n,a||function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!(!r||!r.enumerable)}(o,n))});var l={i:a?5:4,A:i?i.A:I(),P:!1,$:!1,I:!1,D:{},l:i,t:o,k:u,o:null,O:!1,C:!1};return Object.defineProperty(u,Q,{value:l,writable:!0}),u},K:t,S:function(e,r,n){e.p.forEach(function(e){e[Q].$=!0}),n?b(r)&&r[Q].A===e&&o(e.p):(e.u&&function e(r){if(r&&"object"==typeof r){var n=r[Q];if(n){var o=n.t,i=n.k,s=n.D,c=n.i;if(4===c)w(i,function(r){r!==Q&&(void 0!==o[r]||x(o,r)?s[r]||e(i[r]):(s[r]=!0,t(n)))}),w(o,function(e){void 0!==i[e]||x(i,e)||(s[e]=!1,t(n))});else if(5===c){if(a(n)&&(t(n),s.length=!0),i.length<o.length)for(var u=i.length;u<o.length;u++)s[u]=!1;else for(var l=o.length;l<i.length;l++)s[l]=!0;for(var d=Math.min(i.length,o.length),p=0;p<d;p++)void 0===s[p]&&e(i[p])}}}}(e.p[0]),o(e.p))}})}();const Ie=-1;let Pe=function(e){return e.FRAME="frame",e.PAGE="page",e}({});const Le=({annotations:e})=>e.activeId,Me=({annotations:e},t)=>e.byId[t],Re=({annotations:e})=>[...Object.values(e.byId)],je=(e,t)=>{const r=Re(e);return t===Ie?r:r.filter(e=>h()(e,"target.location.value")===t)},Ne=({annotations:e})=>e.isInitialized,Fe=e=>e.options.apiHost,Be=e=>e.options.viewMode,Ue=e=>e.options.fileId,Ke=e=>e.options.fileVersionId,He=e=>e.options.isCurrentFileVersion,ze=e=>e.options.permissions,Ve=e=>e.options.rotation,qe=e=>e.options.scale,Ge=e=>e.options.token,We=(e,t)=>h()((e=>e.options.features)(e),t,!1),$e=e=>We(e,"isThreadedAnnotation")&&We(e,"isRichTextEnabled");function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Ze=De("CREATE_ANNOTATION",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=Ue(i),s=Ke(i),c=ze(i),u=$e(i);return n.addEventListener("abort",()=>{o.destroy()}),new Promise((t,r)=>{o.createAnnotation(a,s,e,c,t,r,u)})}),Je=De("FETCH_ANNOTATIONS",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=Ue(i),s=Ke(i),c=ze(i);n.addEventListener("abort",()=>{o.destroy()});const u=We(i,"isThreadedAnnotation"),l=$e(i);return new Promise((e,t)=>{o.getAnnotations(a,s,c,e,t,1e3,!1,u,l)})}),Qe=De("CREATE_REPLY",async({annotationId:e,message:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getAnnotationsAPI(),a=n(),s=Ue(a),c=ze(a),u=Me(a,e),l=Xe(Xe({},c),u?.permissions),d=$e(a);o.addEventListener("abort",()=>{i.destroy()});const p=await new Promise((r,n)=>{i.createAnnotationReply(s,e,l,t,r,n,d)});return{annotationId:e,reply:p}}),et=De("DELETE_ANNOTATION",async(e,{extra:t,getState:r,signal:n})=>{const o=t.api.getAnnotationsAPI(),i=r(),a=Ue(i),s=ze(i),c=Me(i,e),u=Xe(Xe({},s),c?.permissions);return n.addEventListener("abort",()=>{o.destroy()}),await new Promise((t,r)=>{o.deleteAnnotation(a,e,u,t,r)}),e}),tt=De("UPDATE_ANNOTATION",async({annotationId:e,payload:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getAnnotationsAPI(),a=n(),s=Ue(a),c=ze(a),u=Me(a,e),l=Xe(Xe({},c),u?.permissions),d=$e(a);return o.addEventListener("abort",()=>{i.destroy()}),new Promise((r,n)=>{i.updateAnnotation(s,e,l,t,r,n,d)})}),rt=De("UPDATE_REPLY",async({annotationId:e,replyId:t,payload:r},{extra:n,getState:o,signal:i})=>{const a=n.api.getThreadedCommentsAPI(),s=o(),c=Ue(s),u=Me(s,e),l=u?.replies?.find(e=>e.id===t),d=$e(s);if(!l)throw new Error(`updateReplyAction: reply ${t} not found on annotation ${e}`);return i.addEventListener("abort",()=>{a.destroy()}),{annotationId:e,reply:await new Promise((e,n)=>{a.updateComment({commentId:t,errorCallback:n,fileId:c,message:r.message,permissions:l.permissions??{},shouldEnableRichText:d,status:r.status,successCallback:e})})}}),nt=De("DELETE_REPLY",async({annotationId:e,replyId:t},{extra:r,getState:n,signal:o})=>{const i=r.api.getThreadedCommentsAPI(),a=n(),s=Ue(a),c=Me(a,e),u=c?.replies?.find(e=>e.id===t);if(!u)throw new Error(`deleteReplyAction: reply ${t} not found on annotation ${e}`);return o.addEventListener("abort",()=>{i.destroy()}),await new Promise((e,r)=>{i.deleteComment({commentId:t,errorCallback:r,fileId:s,permissions:u.permissions??{},successCallback:e})}),{annotationId:e,replyId:t}}),ot=Oe("APPLY_SIDEBAR_ANNOTATION_UPDATE"),it=Oe("APPLY_SIDEBAR_REPLY_CREATE"),at=Oe("APPLY_SIDEBAR_REPLY_DELETE"),st=Oe("APPLY_SIDEBAR_REPLY_UPDATE"),ct=Oe("REMOVE_ANNOTATION"),ut=Oe("SET_ACTIVE_ANNOTATION_ID"),lt=Oe("CLEAR_ACTIVE_ANNOTATION_ID"),dt=Oe("SET_IS_INITIALIZED");function pt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ft,ht=new Uint8Array(16);function gt(){if(!ft&&!(ft="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ft(ht)}const mt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var yt=[],bt=0;bt<256;++bt)yt.push((bt+256).toString(16).substr(1));const vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(yt[e[t+0]]+yt[e[t+1]]+yt[e[t+2]]+yt[e[t+3]]+"-"+yt[e[t+4]]+yt[e[t+5]]+"-"+yt[e[t+6]]+yt[e[t+7]]+"-"+yt[e[t+8]]+yt[e[t+9]]+"-"+yt[e[t+10]]+yt[e[t+11]]+yt[e[t+12]]+yt[e[t+13]]+yt[e[t+14]]+yt[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&mt.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r},wt=function(e,t,r){var n=(e=e||{}).random||(e.rng||gt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return vt(n)},St=["paths"],xt=["path_groups"],Et=["target"];function _t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ct(e){let{paths:t}=e,r=pt(e,St);return Ot({clientId:wt(),paths:t.map(e=>Ot({clientId:wt()},e))},r)}function kt(e){const{target:{path_groups:t}}=e,r=pt(e.target,xt),n=pt(e,Et);return Ot({target:Ot({path_groups:t.map(e=>Ct(e))},r)},n)}function At({height:e,width:t,x:r,y:n}){return{x:r+t/2,y:n+e/2}}const Tt=e=>{if(!e||!e.length)return"";const t=e.map(({x:e,y:t},r,n)=>{if(0===r)return`M ${e} ${t}`;const o=n[r-1],i=n[r+1];return o&&i?`C ${(e+o.x)/2} ${(t+o.y)/2}, ${e} ${t}, ${(e+i.x)/2} ${(t+i.y)/2}`:""}).join(" ").trim();return t};function Dt(e){let t=0,r=0,n=Number.MAX_VALUE,o=Number.MAX_VALUE;return e.forEach(({paths:e})=>{e.forEach(({points:e})=>{e.forEach(({x:e,y:i})=>{t=Math.max(t,e),r=Math.max(r,i),n=Math.min(n,e),o=Math.min(o,i)})})}),{height:Math.max(0,r-o),width:Math.max(0,t-n),x:n===Number.MAX_VALUE?0:n,y:o===Number.MAX_VALUE?0:o}}function It(e){return"drawing"===e?.target?.type}function Pt(e){return At(Dt(e))}const Lt=Oe("SET_FIlE_ID"),Mt=Oe("SET_FILE_VERSION_ID"),Rt=Oe("SET_PERMISSIONS"),jt=Oe("SET_ROTATION"),Nt=Oe("SET_SCALE"),Ft=Oe("SET_VIEW_MODE");function Bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Kt=fe({activeId:Ce(null,e=>e.addCase(lt,()=>null).addCase(Ze.fulfilled,()=>null).addCase(et.fulfilled,(e,{payload:t})=>e===t?null:e).addCase(ct,(e,{payload:t})=>e===t?null:e).addCase(ut,(e,{payload:t})=>t).addCase(Ft,(e,{payload:t})=>"boundingBoxes"===t?null:e)),allIds:Ce([],e=>e.addCase(Ze.fulfilled,(e,{payload:{id:t}})=>{e.push(t)}).addCase(et.fulfilled,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(ct,(e,{payload:t})=>e.filter(e=>e!==t)).addCase(Je.fulfilled,(e,{payload:t})=>{t.entries.forEach(({id:t})=>-1===e.indexOf(t)&&e.push(t))})),byId:Ce({},e=>e.addCase(Ze.fulfilled,(e,{payload:t})=>{e[t.id]=It(t)?kt(t):t}).addCase(Qe.fulfilled,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&(n.replies=[...n.replies??[],r])}).addCase(et.fulfilled,(e,{payload:t})=>{delete e[t]}).addCase(ct,(e,{payload:t})=>{delete e[t]}).addCase(tt.fulfilled,(e,{payload:t})=>{e[t.id]=It(t)?kt(t):t}).addCase(rt.fulfilled,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.map(e=>e.id===r.id?r:e))}).addCase(nt.fulfilled,(e,{payload:{annotationId:t,replyId:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.filter(e=>e.id!==r))}).addCase(ot,(e,{payload:t})=>{const r=e[t.id];r&&Object.entries(t).forEach(([e,t])=>{void 0!==t&&(r[e]=t)})}).addCase(it,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];if(!n)return;const o=n.replies??[];o.some(e=>e.id===r.id)||(n.replies=[...o,r])}).addCase(st,(e,{payload:{annotationId:t,reply:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.map(e=>e.id===r.id?Ut(Ut({},e),r):e))}).addCase(at,(e,{payload:{annotationId:t,replyId:r}})=>{const n=e[t];n&&n.replies&&(n.replies=n.replies.filter(e=>e.id!==r))}).addCase(Je.fulfilled,(e,{payload:t})=>{t.entries.forEach(t=>{e[t.id]=It(t)?kt(t):t})})),isInitialized:Ce(!1,e=>{e.addCase(dt,()=>!0)})}),Ht="#fff",zt="#0061d5",Vt="#909090",qt=Oe("SET_COLOR"),Gt=Oe("TOGGLE_ANNOTATION_MODE"),Wt=Ce({color:zt,mode:g.NONE},e=>e.addCase(qt,(e,{payload:t})=>{e.color=t}).addCase(Gt,(e,{payload:t})=>{e.mode=t}));let $t=function(e){return e.init="init",e.pending="pending",e.rejected="rejected",e.staged="staged",e.started="started",e}({});const Yt=Oe("RESET_CREATOR"),Xt=Oe("SET_CREATOR_CURSOR"),Zt=Oe("SET_CREATOR_MESSAGE"),Jt=Oe("SET_CREATOR_REFERENCE_ID"),Qt=Oe("SET_CREATOR_STAGED"),er=Oe("SET_CREATOR_STATUS"),tr={cursor:0,error:null,message:"",referenceId:null,staged:null,status:$t.init},rr=Ce(tr,e=>e.addCase(Ze.fulfilled,()=>tr).addCase(Ze.pending,e=>{e.error=null,e.status=$t.pending}).addCase(Ze.rejected,(e,{error:t})=>{e.error=t,e.status=$t.rejected}).addCase(Yt,e=>{e.message="",e.referenceId=null,e.staged=null,e.status=$t.init}).addCase(Zt,(e,{payload:t})=>{e.message=t}).addCase(Jt,(e,{payload:t})=>{e.referenceId=t}).addCase(Qt,(e,{payload:t})=>{e.staged=t}).addCase(er,(e,{payload:t})=>{e.status=t}).addCase(Xt,(e,{payload:t})=>{e.cursor=t}).addCase(Gt,()=>tr)),nr=Oe("ADD_DRAWING_PATH_GROUP",e=>({payload:Ct(e)})),or=Oe("REDO_DRAWING_PATH_GROUP"),ir=Oe("RESET_DRAWING"),ar=Oe("SET_DRAWING_LOCATION"),sr=Oe("UNDO_DRAWING_PATH_GROUP"),cr={drawnPathGroups:[],location:0,stashedPathGroups:[]},ur=Ce(cr,e=>e.addCase(Ze.fulfilled,()=>cr).addCase(nr,(e,{payload:t})=>{e.drawnPathGroups.push(t),e.stashedPathGroups=[]}).addCase(or,e=>{const t=e.stashedPathGroups.pop();t&&e.drawnPathGroups.push(t)}).addCase(Yt,()=>cr).addCase(ir,()=>cr).addCase(ar,(e,{payload:t})=>{e.location!==t&&(e.location=t,e.drawnPathGroups=[])}).addCase(Gt,()=>cr).addCase(sr,e=>{const t=e.drawnPathGroups.pop();t&&e.stashedPathGroups.push(t)}));let lr=function(e){return e.highlight="highlight",e.region="region",e}({});const dr=e=>{let t=Number.MAX_VALUE,r=Number.MAX_VALUE,n=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.forEach(({height:e,width:i,x:a,y:s})=>{const c=a+i,u=s+e;0!==i&&0!==e&&(a<t&&(t=a),s<r&&(r=s),c>n&&(n=c),u>o&&(o=u))}),{x:t,y:r,width:n-t,height:o-r}};function pr(e){return e?.target?.type===lr.highlight}const fr=(e,t,r)=>Math.max(Math.round(e*r),Math.round(t*r),1),hr=e=>{const t=[];return((e,t=.1)=>{const r=[];return e.forEach(e=>{const n=r.pop();if(!n)return void r.push(e);const{width:o,height:i,x:a,y:s}=n,{width:c,height:u,x:l,y:d}=e,p=fr(o,c,t),f=fr(i,u,t);Math.abs(a-l)<=p&&Math.abs(s-d)<=f?r.push(i*o>u*c?n:e):(r.push(n),r.push(e))}),r})(e).forEach(e=>{const{height:r,width:n,x:o,y:i}=e;if(0===n||0===r)return;const a=t.pop();if(!a)return void t.push(e);const{height:s,width:c,x:u,y:l}=a,d=u+c,p=fr(c,n,.3),f=fr(s,r,.6),h=Math.abs(o-d)<p,g=Math.abs(i-l)<f;h&&g?t.push(dr([a,e])):(t.push(a),t.push(e))}),t},gr={height:100,width:100},mr=({x:e,y:t},r)=>({x:e,y:r>0?r-t:t}),yr=({x:e,y:t},r)=>{const n=r*Math.PI/180,o=Math.cos(n),i=Math.sin(n);return{x:e*o-t*i,y:e*i+t*o}};function br({x:e,y:t},r){const{x:n,y:o}=function(e,t){const{height:r,width:n}=e,{height:o,width:i}=gr,a=t%180==0,s=t%360==0,c=function(e,t){const{height:r,width:n}=e;switch(t){case-90:return{dx:r};case-180:return{dx:n,dy:r};case-270:return{dy:n}}return{dx:0,dy:0}}(gr,t),u=function(e,t){const[r,n,o,i]=(e=>{const{height:t,width:r,x:n,y:o}=e;return[{x:n,y:o},{x:n+r,y:o},{x:n+r,y:o+t},{x:n,y:o+t}]})(e);switch(t){case-90:return n;case-180:return o;case-270:return i;default:return r}}(e,t);if(s)return e;const l=mr(u,o),d=(({x:e,y:t},{dx:r=0,dy:n=0})=>({x:e+r,y:t+n}))(yr(l,-t),c),{x:p,y:f}=mr(d,a?o:i);return{height:a?r:n,width:a?n:r,x:p,y:f}}({height:0,width:0,x:e,y:t},r);return{x:n,y:o}}function vr(e,t,r,n){if(!r)return[e,t];const o=r.getBoundingClientRect();if(!n)return[e-o.left,t-o.top];const i=o.left+o.width/2,a=o.top+o.height/2,s=yr({x:e-i,y:t-a},-n);return[s.x+r.offsetWidth/2,s.y+r.offsetHeight/2]}const wr=({height:e,left:t,top:r,width:n})=>({height:e,width:n,x:t,y:r}),Sr=Oe("SET_SELECTION",e=>{if(!e)return{payload:null};const{containerEl:t,containerRect:r,hasError:n,location:o,range:i,rotation:a}=e;let s=Array.from(i.getClientRects());s.length||(s=(e=>{const t=document.createNodeIterator(e.commonAncestorContainer,NodeFilter.SHOW_ALL,function(){return NodeFilter.FILTER_ACCEPT},!1),r=document.createRange(),n=[];let o=t.nextNode();for(;o;)if(0!==n.length||o===e.startContainer){if(o.nodeType===Node.TEXT_NODE&&(r.selectNodeContents(o),o===e.startContainer&&r.setStart(o,e.startOffset),o===e.endContainer&&r.setEnd(o,e.endOffset),n.push(r.getBoundingClientRect())),o===e.endContainer)break;o=t.nextNode()}else o=t.nextNode();return n})(i));const c=s.map(wr);if(a&&t){const e=c.map(e=>{const[r,n]=vr(e.x,e.y,t,a),[o,i]=vr(e.x+e.width,e.y+e.height,t,a);return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}});return{payload:{containerRect:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight},hasError:n,location:o,popupRect:dr(c),rects:hr(e)}}}return{payload:{containerRect:wr(r),hasError:n,location:o,rects:hr(c)}}}),xr=Oe("SET_IS_PROMOTING"),Er=Oe("SET_IS_SELECTING"),_r=Ce({isPromoting:!1,isSelecting:!1,selection:null},e=>e.addCase(xr,(e,{payload:t})=>{e.isPromoting=t}).addCase(Er,(e,{payload:t})=>{e.isSelecting=t}).addCase(Sr,(e,{payload:t})=>{e.selection=t}).addCase(Ze.fulfilled,e=>{e.isPromoting=!1}).addCase(Yt,e=>{e.isPromoting=!1}).addCase(Gt,e=>{e.isPromoting=!1}).addCase(er,e=>{e.selection=null})),Or=Oe("SET_BOUNDING_BOX_HIGHLIGHTS"),Cr=Oe("SET_SELECTED_BOUNDING_BOX_HIGHLIGHT"),kr=Oe("NAVIGATE_BOUNDING_BOX_HIGHLIGHT"),Ar=Ce({boundingBoxes:[],selectedId:null},e=>{e.addCase(Or,(e,{payload:t})=>{e.boundingBoxes=t,e.selectedId=null}).addCase(Cr,(e,{payload:t})=>{e.selectedId=t}).addCase(kr,(e,{payload:t})=>{e.selectedId=t}).addCase(Ft,(e,{payload:t})=>{"annotations"===t&&(e.selectedId=null)})}),Tr=Ce({apiHost:"",features:{},fileId:null,fileVersionId:null,isCurrentFileVersion:!0,permissions:{},rotation:0,scale:1,token:"",viewMode:"annotations"},e=>e.addCase(Lt,(e,{payload:t})=>{e.fileId=t}).addCase(Mt,(e,{payload:t})=>{e.fileVersionId=t}).addCase(Rt,(e,{payload:t})=>{e.permissions=t}).addCase(jt,(e,{payload:t})=>{e.rotation=t}).addCase(Nt,(e,{payload:t})=>{e.scale=t}).addCase(Ft,(e,{payload:t})=>{e.viewMode=t})),Dr=De("FETCH_COLLABORATORS",async(e="",{extra:t,getState:r,signal:n})=>{const o=t.api.getCollaboratorsAPI(),i=r(),a=Ue(i);return n.addEventListener("abort",()=>{o.destroy()}),new Promise((t,r)=>{o.getFileCollaborators(a,t,r,{filter_term:e,include_groups:!1,include_uploader_collabs:!1})})}),Ir=Ce({collaborators:[]},e=>e.addCase(Dr.fulfilled,(e,{payload:t})=>{e.collaborators=t.entries}).addCase(Dr.rejected,e=>{e.collaborators=[]}));var Pr=l(3950),Lr=l.n(Pr),Mr=l(7007),Rr=function(e){return e.ACTIVE_SET="annotations_active_set",e.ANNOTATION_REMOVE="annotations_remove",e.BOUNDING_BOX_HIGHLIGHTS_SET="bounding_box_highlights_set",e.BOUNDING_BOX_HIGHLIGHT_SELECT="bounding_box_highlight_select",e.COLOR_SET="annotations_color_set",e.VIEW_MODE_SET="view_mode_set",e.VISIBLE_SET="annotations_visible_set",e.ACTIVE_CHANGE="annotations_active_change",e.ANNOTATION_CREATE="annotations_create",e.ANNOTATION_DELETE="annotations_delete",e.ANNOTATION_FETCH_ERROR="annotations_fetch_error",e.ANNOTATION_REPLY_CREATE="annotations_reply_create",e.ANNOTATION_REPLY_DELETE="annotations_reply_delete",e.ANNOTATION_REPLY_UPDATE="annotations_reply_update",e.ANNOTATION_UPDATE="annotations_update",e.ANNOTATIONS_INITIALIZED="annotations_initialized",e.ANNOTATIONS_MODE_CHANGE="annotations_mode_change",e.CREATOR_STAGED_CHANGE="creator_staged_change",e.CREATOR_STATUS_CHANGE="creator_status_change",e.BOUNDING_BOX_HIGHLIGHT_NAVIGATE="bounding_box_highlight_navigate",e}(Rr||{}),jr=function(e){return e.SIDEBAR_ANNOTATION_UPDATE="sidebar.annotations_update",e.SIDEBAR_REPLY_CREATE="sidebar.annotations_reply_create",e.SIDEBAR_REPLY_DELETE="sidebar.annotations_reply_delete",e.SIDEBAR_REPLY_UPDATE="sidebar.annotations_reply_update",e}(jr||{}),Nr=function(e){return e.ANNOTATOR="annotatorevent",e.ERROR="annotationerror",e.SCALE="scaleannotations",e}(Nr||{});class Fr extends Mr.EventEmitter{emit(e,...t){const[r]=t;return super.emit(e,r),super.emit(Nr.ANNOTATOR,{event:e,data:r}),!0}}const Br=new Fr,Ur=({boundingBoxHighlights:e})=>e.boundingBoxes,Kr=({boundingBoxHighlights:e},t)=>e.boundingBoxes.filter(e=>e.pageNumber===t),Hr=({boundingBoxHighlights:e})=>e.selectedId;let zr=function(e){return e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e}({});const Vr=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;Br.emit(Rr.ANNOTATION_CREATE,{annotation:i||n,error:r,meta:{requestId:o,status:t}})})(n,e),qr=Vr(zr.ERROR),Gr=Vr(zr.PENDING),Wr=Vr(zr.SUCCESS),$r=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===zr.SUCCESS&&!i)return;const a=i??n;Br.emit(Rr.ANNOTATION_DELETE,{annotation:a?{id:a}:void 0,error:r,meta:{requestId:o,status:t}})})(n,e),Yr=$r(zr.ERROR),Xr=$r(zr.PENDING),Zr=$r(zr.SUCCESS),Jr=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===zr.SUCCESS&&!i?.reply)return;const a=i?.annotationId??n?.annotationId;Br.emit(Rr.ANNOTATION_REPLY_CREATE,{annotation:a?{id:a}:void 0,annotationReply:i?.reply,error:r,meta:{requestId:o,status:t}})})(n,e),Qr=Jr(zr.ERROR),en=Jr(zr.PENDING),tn=Jr(zr.SUCCESS),rn=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===zr.SUCCESS&&!i)return;const a=i?.annotationId??n?.annotationId,s=i?.replyId??n?.replyId;Br.emit(Rr.ANNOTATION_REPLY_DELETE,{annotation:a?{id:a}:void 0,annotationReply:s?{id:s}:void 0,error:r,meta:{requestId:o,status:t}})})(n,e),nn=rn(zr.ERROR),on=rn(zr.PENDING),an=rn(zr.SUCCESS),sn=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===zr.SUCCESS&&!i?.reply)return;const a=i?.annotationId??n?.annotationId,s=i?.reply??(n?{id:n.replyId}:void 0);Br.emit(Rr.ANNOTATION_REPLY_UPDATE,{annotation:a?{id:a}:void 0,annotationReply:s,error:r,meta:{requestId:o,status:t}})})(n,e),cn=sn(zr.ERROR),un=sn(zr.PENDING),ln=sn(zr.SUCCESS),dn=e=>e.creator.cursor,pn=e=>e.creator.message,fn=e=>e.creator.referenceId,hn=e=>e.creator.staged,gn=(e,t)=>{const r=hn(e);return t===Ie||r&&r.location===t?r:null},mn=e=>e.creator.status,yn=e=>void 0!==e?.pathGroups,bn=e=>void 0!==e?.shapes,vn=e=>void 0!==e?.shape,wn=e=>{let t=null;return vn(e)&&(t="region"),bn(e)&&(t="highlight"),t},Sn=({common:e})=>e.mode,xn=e=>e.common.color,En=e=>(t,r,n)=>((e,t)=>{const{error:r,meta:{arg:n,requestId:o}={},payload:i}=e;if(t===zr.SUCCESS&&!i)return;const a=i??(n?{id:n.annotationId}:void 0);Br.emit(Rr.ANNOTATION_UPDATE,{annotation:a,error:r,meta:{requestId:o,status:t}})})(n,e),_n=En(zr.ERROR),On=En(zr.PENDING),Cn=En(zr.SUCCESS),kn={[Ze.fulfilled.toString()]:Wr,[Ze.pending.toString()]:Gr,[Ze.rejected.toString()]:qr,[Qe.fulfilled.toString()]:tn,[Qe.pending.toString()]:en,[Qe.rejected.toString()]:Qr,[et.fulfilled.toString()]:Zr,[et.pending.toString()]:Xr,[et.rejected.toString()]:Yr,[nt.fulfilled.toString()]:an,[nt.pending.toString()]:on,[nt.rejected.toString()]:nn,[Je.rejected.toString()]:(e,t,r)=>{Br.emit(Rr.ANNOTATION_FETCH_ERROR,r)},[kr.toString()]:(e,t)=>{const r=Hr(t);r&&Br.emit(Rr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,r)},[Yt.toString()]:e=>{const t=hn(e),r=wn(t);Br.emit(Rr.CREATOR_STAGED_CHANGE,{type:r,status:"cancel"})},[ut.toString()]:(e,t)=>{const r=Le(e),n=Le(t),o=Ke(t);r!==n&&Br.emit(Rr.ACTIVE_CHANGE,{annotationId:n,fileVersionId:o})},[dt.toString()]:(e,t)=>{const r=Ne(e),n=Ne(t);r!==n&&n&&Br.emit(Rr.ANNOTATIONS_INITIALIZED,{annotations:Re(t)})},[Qt.toString()]:(e,t)=>{const r=hn(e),n=hn(t),o=((e,t)=>{let r=null;return null===e&&null!==t&&(r="create"),null!==e&&(r=null===t?"cancel":"update"),r})(r,n),i=wn(r)||wn(n);o&&i&&Br.emit(Rr.CREATOR_STAGED_CHANGE,{type:i,status:o})},[er.toString()]:(e,t)=>{const r=mn(e),n=mn(t);r!==n&&Br.emit(Rr.CREATOR_STATUS_CHANGE,{status:n,type:Sn(t)})},[Gt.toString()]:(e,t)=>{Br.emit(Rr.ANNOTATIONS_MODE_CHANGE,{mode:t.common.mode})},[tt.fulfilled.toString()]:Cn,[tt.pending.toString()]:On,[tt.rejected.toString()]:_n,[rt.fulfilled.toString()]:ln,[rt.pending.toString()]:un,[rt.rejected.toString()]:cn},An=function(e=kn){return t=>r=>n=>{const{type:o}=n,i=t.getState(),a=r(n),s=t.getState();return(e[o]||Lr())(i,s,n),a}};function Tn(e,{api:t}={}){return function(e){var t,r=e||{},n=r.reducer,o=void 0===n?void 0:n,i=r.middleware,a=void 0===i?_e():i,s=r.devTools,c=void 0===s||s,u=r.preloadedState,l=void 0===u?void 0:u,d=r.enhancers,p=void 0===d?void 0:d;if("function"==typeof o)t=o;else{if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=fe(o)}var f=ye.apply(void 0,a),h=me;c&&(h=Ee(xe({trace:!1},"object"==typeof c&&c)));var g=[f];return Array.isArray(p)?g=[f].concat(p):"function"==typeof p&&(g=p(g)),de(t,l,h.apply(void 0,g))}({devTools:!1,middleware:[..._e({thunk:{extraArgument:{api:t}}}),An()],preloadedState:e,reducer:fe({annotations:Kt,common:Wt,creator:rr,drawing:ur,highlight:_r,boundingBoxHighlights:Ar,options:Tr,users:Ir})})}var Dn=l(5364),In=l.n(Dn);let Pn;class Ln{static getUserAgent(){return globalThis.navigator.userAgent}static isMobile(){const e=Ln.getUserAgent();return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(e)||/Mobi/i.test(e)}static isIE(){return/Trident/i.test(Ln.getUserAgent())}static isFirefox(){const e=Ln.getUserAgent();return/Firefox/i.test(e)&&!/Seamonkey\//i.test(e)}static isSafari(){const e=Ln.getUserAgent();return/AppleWebKit/i.test(e)&&!/Chrome\//i.test(e)}static isMobileSafari(){return Ln.isMobile()&&Ln.isSafari()&&!Ln.isMobileChromeOniOS()}static isMobileChromeOniOS(){const e=Ln.getUserAgent();return Ln.isMobile()&&/AppleWebKit/i.test(e)&&/CriOS\//i.test(e)}static canDownload(){return!Ln.isMobile()||!window.externalHost&&"download"in document.createElement("a")}static canPlayDash(e=!1){if(void 0===Pn||e){const e=globalThis.MediaSource;Pn=!!e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return!!Pn}static canWriteToClipboard(){return!!globalThis.navigator.clipboard?.writeText}static canReadFromClipboard(){return!!globalThis.navigator.clipboard?.readText}}const Mn="folder_",Rn="file_",jn="Content-Type",Nn="Accept-Language",Fn="can_comment",Bn="can_create_annotations",Un="can_delete",Kn="can_edit",Hn="can_resolve",zn="can_view_annotations",Vn="https://api.box.com",qn="https://upload.box.com",Gn="fetch_replies_error",Wn="create_reply_error",$n=(Ln.canPlayDash(),"GET"),Yn="POST",Xn="DELETE",Zn="OPTIONS",Jn=36e5,Qn=e=>`${Rn}${e}`;var eo=l(2505),to=l.n(eo),ro=l(9859),no=l.n(ro),oo=l(5321),io=l.n(oo);const ao=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function.");class so{static async getToken(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.startsWith(Mn)&&!e.startsWith(Rn))throw ao;if(!t||"string"==typeof t)return t;const r=await t(e);if(!r||"string"==typeof r||"object"==typeof r&&(r.read||r.write))return r;throw ao}static async getReadToken(e,t){const r=await so.getToken(e,t);return r&&"object"==typeof r?r.read:r}static async getReadTokens(e,t){const r=Array.isArray(e)?e:[e],n=r.map(e=>so.getReadToken(e,t)),o=await Promise.all(n),i={};return o.forEach((e,t)=>{i[r[t]]=e}),Promise.resolve(i)}static async getWriteToken(e,t){const r=await so.getToken(e,t);return r&&"object"==typeof r?r.write||r.read:r}static async cacheTokens(e,t){if(null!=t&&"string"!=typeof t&&"function"!=typeof t||!e.every(e=>e.startsWith(Mn)||e.startsWith(Rn)))throw ao;return"function"==typeof t&&await t(e),Promise.resolve()}}const co=so;function uo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function lo(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const po=[$n,Zn,"HEAD"].map(io()),fo=class{constructor({id:e,clientName:t,language:r,token:n,version:o,sharedLink:i,sharedLinkPassword:a,responseInterceptor:s,requestInterceptor:c,retryableStatusCodes:u=[429],shouldRetry:l=!0}={}){lo(this,"retryCount",0),lo(this,"errorInterceptor",e=>{if(this.shouldRetryRequest(e)){this.retryCount+=1;const t=this.getExponentialRetryTimeoutInMs(this.retryCount);return new Promise((r,n)=>{this.retryTimeout=setTimeout(()=>{this.axios(e.config).then(r,n)},t)})}const t=h()(e,"response.data")||e;return this.responseInterceptor(t),Promise.reject(e)}),this.clientName=t,this.id=e,this.language=r,this.responseInterceptor=s||this.defaultResponseInterceptor,this.retryableStatusCodes=u,this.sharedLink=i,this.sharedLinkPassword=a,this.shouldRetry=l,this.token=n,this.version=o,this.axios=to().create(),this.axiosSource=to().CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof c&&this.axios.interceptors.request.use(c)}defaultResponseInterceptor(e){return e}shouldRetryRequest(e){if(!this.shouldRetry||this.retryCount>=3)return!1;const{response:t,request:r,config:n}=e,o=h()(t,"status"),i=h()(n,"method"),a=r&&!t,s=429===o,c=no()(this.retryableStatusCodes,o)&&no()(po,i);return a||s||c}getExponentialRetryTimeoutInMs(e){return 2**(e-1)*1e3+Math.ceil(1e3*Math.random())}getParsedUrl(e){const t=document.createElement("a");return t.href=e,{api:e.replace(`${t.origin}/2.0`,""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}async getHeaders(e,t={}){const r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(r),!0).forEach(function(t){lo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({Accept:"application/json",[jn]:"application/json"},t);this.language&&!r[Nn]&&(r[Nn]=this.language),this.sharedLink&&(r.BoxApi=`shared_link=${this.sharedLink}`,this.sharedLinkPassword&&(r.BoxApi=`${r.BoxApi}&shared_link_password=${this.sharedLinkPassword}`)),this.clientName&&(r["X-Box-Client-Name"]=this.clientName),this.version&&(r["X-Box-Client-Version"]=this.version);const n=e||this.id||"",o=await co.getWriteToken(n,this.token);return o&&(r.Authorization=`Bearer ${o}`),r}get({url:e,id:t,params:r={},headers:n={}}){return this.getHeaders(t,n).then(t=>this.axios.get(e,{cancelToken:this.axiosSource.token,params:r,headers:t,parsedUrl:this.getParsedUrl(e)}))}post({url:e,id:t,data:r,params:n,headers:o={},method:i=Yn}){return this.getHeaders(t,o).then(t=>this.axios({url:e,data:r,params:n,method:i,parsedUrl:this.getParsedUrl(e),headers:t}))}put({url:e,id:t,data:r,params:n,headers:o={}}){return this.post({id:t,url:e,data:r,params:n,headers:o,method:"PUT"})}delete({url:e,id:t,data:r={},headers:n={}}){return this.post({id:t,url:e,data:r,headers:n,method:Xn})}options({id:e,url:t,data:r,headers:n={},successHandler:o,errorHandler:i}){return this.getHeaders(e,n).then(e=>this.axios({url:t,data:r,method:Zn,headers:e}).then(o).catch(i)).catch(i)}uploadFile({id:e,url:t,data:r,headers:n={},method:o=Yn,successHandler:i,errorHandler:a,progressHandler:s,withIdleTimeout:c=!1,idleTimeoutDuration:u=12e4,idleTimeoutHandler:l}){return this.getHeaders(e,n).then(e=>{let d,p=s;if(c){const e=()=>{this.abort(),l&&l()};d=setTimeout(e,u),p=t=>{clearTimeout(d),d=setTimeout(e,u),s(t)}}this.axios({url:t,data:r,transformRequest:(e,t)=>{if(delete t.Accept,delete t[jn],n[jn]&&(t[jn]=n[jn]),e&&!(e instanceof Blob)&&e.attributes){const t=new FormData;return Object.keys(e).forEach(r=>{t.append(r,e[r])}),t}return e},method:o,headers:e,onUploadProgress:p,cancelToken:this.axiosSource.token}).then(e=>{clearTimeout(d),i(e)}).catch(e=>{clearTimeout(d),a(e)})}).catch(a)}abort(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=to().CancelToken.source())}},ho=class{constructor(){this.cache={}}set(e,t){this.cache[e]=t}merge(e,t){if(!this.has(e))throw new Error(`Key ${e} not in cache!`);this.set(e,In()({},this.get(e),t))}unset(e){delete this.cache[e]}unsetAll(e){Object.keys(this.cache).forEach(t=>{t.startsWith(e)&&delete this.cache[t]})}has(e){return{}.hasOwnProperty.call(this.cache,e)}get(e){if(this.has(e))return this.cache[e]}},go=class{constructor(){this.memoryStore=new ho;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}buildKey(e){return`localStore/0/${e}`}canUseLocalStorage(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}setItem(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(e){}else this.memoryStore.set(e,t)}getItem(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{const t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(e){return null}}removeItem(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}},mo="bcu-uploads-reachability-cached-results",yo=class{constructor(){this.localStore=new go,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}getCachedResultsFromLocalStore(){return this.localStore.getItem(mo)}saveCachedResultsToLocalStore(){this.localStore.setItem(mo,this.cachedResults)}isCachedHostValid(e){return e.expirationTimestampMS>Date.now()}getCachedResult(e){if(e in this.cachedResults){const t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}updateCachedResult(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}populateCachedResultsWithValidLocalStoreValues(){const e=this.getCachedResultsFromLocalStore();e&&Object.keys(e).forEach(t=>{const r=e[t];this.isCachedHostValid(r)&&(this.cachedResults[t]=r)})}getUnreachableHostsUrls(){const e=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach(t=>{const r=this.cachedResults[t];this.isCachedHostValid(r)&&!r.isReachable&&e.push(t)}),e):e}async isReachable(e){if(e===`${qn}/`||"https://upload.app.box.com/"===e)return!0;const t=this.getCachedResult(e);if(t)return t.isReachable;const r=await this.makeReachabilityRequest(e);return this.updateCachedResult(e,r),r}async makeReachabilityRequest(e){const t=`${e}html5?reachability_test=run`,r={[jn]:"application/x-www-form-urlencoded; charset=UTF-8","X-File-Name":"reachability_pseudofile.txt","X-File-Size":"1234"};try{await to().post(t,"reachability_file=test_file_data",{headers:r})}catch(e){return!1}return!0}};function bo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(r),!0).forEach(function(t){wo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wo(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const So=class{constructor(e){wo(this,"successHandler",e=>{this.isDestroyed()||"function"!=typeof this.successCallback||this.successCallback(e)}),wo(this,"errorHandler",e=>{if(!this.isDestroyed()&&"function"==typeof this.errorCallback){const{response:t}=e;t&&t.data?this.errorCallback(t.data,this.errorCode):this.errorCallback(e,this.errorCode)}}),this.cache=e.cache||new ho,this.apiHost=e.apiHost||Vn,this.metadataApiHost=e.metadataApiHost,this.uploadHost=e.uploadHost||qn,this.options=vo(vo({},e),{},{apiHost:this.apiHost,metadataApiHost:this.metadataApiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new fo(this.options),this.destroyed=!1,this.consoleLog=e.consoleLog&&window.console&&window.console.log||Lr(),this.consoleError=e.consoleError&&window.console&&window.console.error||Lr(),this.uploadsReachability=new yo}destroy(){this.xhr.abort(),this.destroyed=!0}isDestroyed(){return this.destroyed}checkApiCallValidity(e,t,r){if(!r||!t)throw new Error("Bad box item!");if(!t[e])throw new Error("Insufficient Permissions!")}buildApiUrl(e){const t=e.endsWith("/")?"2.0":"/2.0";return`${e}${t}`}getBaseApiUrl(){return this.buildApiUrl(this.apiHost)}getBaseUploadUrl(){const e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return`${this.uploadHost}${e}`}getCache(){return this.cache}getUrl(e){throw new Error("Implement me!")}format(e){throw new Error("Implement me!")}get({id:e,successCallback:t,errorCallback:r,requestData:n,url:o}){const i=o||this.getUrl(e);return this.makeRequest($n,e,i,t,r,n)}post({id:e,url:t,data:r,successCallback:n,errorCallback:o}){return this.makeRequest(Yn,e,t,n,o,r)}put({id:e,url:t,data:r,successCallback:n,errorCallback:o}){return this.makeRequest("PUT",e,t,n,o,r)}delete({id:e,url:t,data:r,successCallback:n,errorCallback:o}){return this.makeRequest(Xn,e,t,n,o,r)}async makeRequest(e,t,r,n,o,i={}){if(this.isDestroyed())return;this.successCallback=n,this.errorCallback=o;const a=this.xhr[e.toLowerCase()].bind(this.xhr);try{const{data:e}=await a(vo({id:Qn(t),url:r},i));this.successHandler(e)}catch(e){this.errorHandler(e)}}};function xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(r),!0).forEach(function(t){_o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _o(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Oo=class extends So{hasMoreItems(e){return null!==e&&""!==e}async markerGetRequest(e,t,r,n,o={}){if(!this.isDestroyed())try{const i=this.getUrl(e),a=Eo(Eo({},o),{},{marker:t,limit:r}),{data:s}=await this.xhr.get({url:i,id:Qn(e),params:a}),c=this.data?this.data.entries:[];this.data=Eo(Eo({},s),{},{entries:c.concat(s.entries)});const u=s.next_marker;if(n&&this.hasMoreItems(u))return void this.markerGetRequest(e,u,r,n,o);this.successHandler(this.data)}catch(e){this.errorHandler(e)}}async markerGet({id:e,successCallback:t,errorCallback:r,marker:n="",limit:o=1e3,requestData:i,shouldFetchAll:a=!0}){return this.successCallback=t,this.errorCallback=r,this.markerGetRequest(e,n,o,a,i)}};function Co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ko(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(r),!0).forEach(function(t){Ao(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Co(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ao(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const To=e=>{const t=ko(ko({},e),{},{tagged_message:e.message});return e.replies&&e.replies.length&&(t.replies=e.replies.map(To)),t};function Do(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Io(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(r),!0).forEach(function(t){Po(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Do(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Po(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Lo extends Oo{constructor(...e){super(...e),Po(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return e.type&&"comment"===e.type?void this.successCallback(To(e)):void this.successCallback(this.formatReplies(e));if(e.entries.length&&"comment"===e.entries[0].type){const t=e.entries.map(To);return void this.successCallback(Io(Io({},e),{},{entries:t}))}const t=e.entries.map(this.formatReplies);this.successCallback(Io(Io({},e),{},{entries:t}))})}formatReplies(e){return e.replies&&e.replies.length?Io(Io({},e),{},{replies:e.replies.map(To)}):e}getUrl(){return`${this.getBaseApiUrl()}/undoc/annotations`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e){return`${this.getUrlForId(e)}/replies`}createAnnotation(e,t,r,n,o,i,a){this.errorCode="create_annotation_error";try{this.checkApiCallValidity(Bn,n,e)}catch(e){return void i(e,this.errorCode)}const s={description:{type:"reply"},file_version:{id:t,type:"file_version"}};this.post({id:e,data:{data:In()(s,r),params:{enable_rich_text:Boolean(a)}},errorCallback:i,successCallback:o,url:this.getUrl()})}updateAnnotation(e,t,r,n,o,i,a){this.errorCode="edit_annotation_error";const{message:s,status:c}=n;if(s)try{this.checkApiCallValidity(Kn,r,e)}catch(e){return void i(e,this.errorCode)}if(c)try{this.checkApiCallValidity(Hn,r,e)}catch(e){return void i(e,this.errorCode)}this.put({id:e,data:{data:{description:s?{message:s}:void 0,status:c},params:{enable_rich_text:Boolean(a)}},errorCallback:i,successCallback:o,url:this.getUrlForId(t)})}deleteAnnotation(e,t,r,n,o){this.errorCode="delete_annotation_error";try{this.checkApiCallValidity(Un,r,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t)})}getAnnotation(e,t,r,n,o,i,a){this.errorCode="fetch_annotation_error";try{this.checkApiCallValidity(zn,r,e)}catch(e){return void o(e,this.errorCode)}const s=Io(Io({},i?{fields:"replies"}:{}),{},{enable_rich_text:Boolean(a)});this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlForId(t),requestData:{params:s}})}getAnnotations(e,t,r,n,o,i,a,s,c){this.errorCode="fetch_annotations_error";try{this.checkApiCallValidity(zn,r,e)}catch(e){return void o(e,this.errorCode)}const u=Io(Io({file_id:e,file_version_id:t},s?{fields:"replies"}:null),{},{enable_rich_text:Boolean(c)});this.markerGet({id:e,errorCallback:o,limit:i,requestData:u,shouldFetchAll:a,successCallback:n})}getAnnotationReplies(e,t,r,n,o,i){this.errorCode=Gn;try{this.checkApiCallValidity(zn,r,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:n,url:this.getUrlWithRepliesForId(t),requestData:{params:{enable_rich_text:Boolean(i)}}})}createAnnotationReply(e,t,r,n,o,i,a){this.errorCode=Wn;try{this.checkApiCallValidity(Bn,r,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:n},params:{enable_rich_text:Boolean(a)}},errorCallback:i,successCallback:o,url:`${this.getUrlWithRepliesForId(t)}?file_id=${e}`})}}function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ro(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(r),!0).forEach(function(t){jo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jo(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const No=class extends Oo{constructor(...e){super(...e),jo(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;const t=e.entries.map(e=>{let t;return"group"===e.type?t=e:(t=e,t.email=t.login),{id:e.id,name:e.name,item:t}});this.successCallback(Ro(Ro({},e),{},{entries:t}))}),jo(this,"getCollaboratorsWithQuery",(e,t,r,n,{includeGroups:o=!1,respectHiddenCollabs:i=!1}={})=>{n&&""!==n.trim()&&this.getFileCollaborators(e,t,r,{filter_term:n,include_groups:o,include_uploader_collabs:!1,respect_hidden_collabs:i})})}getUrl(e){if(!e)throw new Error("Missing file id!");return`${this.getBaseApiUrl()}/files/${e}/collaborators`}getFileCollaborators(e,t,r,n={},o=25){this.markerGet({id:e,limit:o,successCallback:t,errorCallback:r,requestData:n})}};function Fo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Bo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(r),!0).forEach(function(t){Uo(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fo(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Uo(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ko=class extends Oo{constructor(...e){super(...e),Uo(this,"successHandler",e=>{if(this.isDestroyed()||"function"!=typeof this.successCallback)return;if(!e)return void this.successCallback();if(!e.entries)return void this.successCallback(To(e));const t=e.entries.map(To);this.successCallback(Bo(Bo({},e),{},{entries:t}))})}getUrl(e){return`${this.getBaseApiUrl()}/undoc/comments${e?`?file_id=${e}`:""}`}getUrlForId(e){return`${this.getUrl()}/${e}`}getUrlWithRepliesForId(e,t){return`${this.getUrlForId(e)}/replies${t?`?file_id=${t}`:""}`}createComment({file:e,message:t,shouldEnableRichText:r,successCallback:n,errorCallback:o}){this.errorCode="create_comment_error";const{id:i,permissions:a}=e;try{this.checkApiCallValidity(Fn,a,i)}catch(e){return void o(e,this.errorCode)}this.post({id:i,url:this.getUrl(i),data:{data:{message:t},params:{enable_rich_text:Boolean(r)}},successCallback:n,errorCallback:o})}updateComment({fileId:e,commentId:t,status:r,message:n,permissions:o,shouldEnableRichText:i,successCallback:a,errorCallback:s}){if(this.errorCode="update_comment_error",n)try{this.checkApiCallValidity(Kn,o,e)}catch(e){return void s(e,this.errorCode)}if(r)try{this.checkApiCallValidity(Hn,o,e)}catch(e){return void s(e,this.errorCode)}const c={data:{status:r,message:n},params:{enable_rich_text:Boolean(i)}};this.put({id:e,url:this.getUrlForId(t),data:c,successCallback:a,errorCallback:s})}deleteComment({fileId:e,commentId:t,permissions:r,successCallback:n,errorCallback:o}){this.errorCode="delete_comment_error";try{this.checkApiCallValidity(Un,r,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,url:this.getUrlForId(t),successCallback:n,errorCallback:o})}getComment({commentId:e,errorCallback:t,fileId:r,permissions:n,shouldEnableRichText:o,successCallback:i}){this.errorCode="fetch_comment_error";try{this.checkApiCallValidity(Fn,n,r)}catch(e){return void t(e,this.errorCode)}this.get({id:r,errorCallback:t,successCallback:i,url:this.getUrlForId(e),requestData:{params:{enable_rich_text:Boolean(o)}}})}getComments({fileId:e,permissions:t,successCallback:r,errorCallback:n,marker:o,limit:i,shouldFetchAll:a,repliesCount:s,shouldEnableRichText:c}){this.errorCode="fetch_comments_error";try{this.checkApiCallValidity(Fn,t,e)}catch(e){return void n(e,this.errorCode)}this.markerGet({id:e,successCallback:r,errorCallback:n,marker:o,limit:i,requestData:Bo(Bo({},s?{replies_count:s}:null),{},{enable_rich_text:Boolean(c)}),shouldFetchAll:a})}getCommentReplies({fileId:e,commentId:t,permissions:r,shouldEnableRichText:n,successCallback:o,errorCallback:i}){this.errorCode=Gn;try{this.checkApiCallValidity(Fn,r,e)}catch(e){return void i(e,this.errorCode)}this.get({id:e,errorCallback:i,successCallback:o,url:this.getUrlWithRepliesForId(t),requestData:{params:{enable_rich_text:Boolean(n)}}})}createCommentReply({fileId:e,commentId:t,permissions:r,shouldEnableRichText:n,successCallback:o,errorCallback:i,message:a}){this.errorCode=Wn;try{this.checkApiCallValidity(Fn,r,e)}catch(e){return void i(e,this.errorCode)}this.post({id:e,data:{data:{message:a},params:{enable_rich_text:Boolean(n)}},errorCallback:i,successCallback:o,url:this.getUrlWithRepliesForId(t,e)})}};function Ho(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}class zo{constructor(e){p(this,"options",void 0),this.options=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ho(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({apiHost:Vn,clientName:"box-annotations"},e)}getAnnotationsAPI(){return new Lo(this.options)}getCollaboratorsAPI(){return new No(this.options)}getThreadedCommentsAPI(){return new Ko(this.options)}}var Vo=l(2015),qo=l.n(Vo);const Go=require("react-dom/client"),Wo=require("react-redux");function $o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Yo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class Xo{constructor({location:e=1,referenceEl:t,resinTags:r={},targetType:n=Pe.PAGE}){p(this,"location",void 0),p(this,"reactEl",void 0),p(this,"root",null),p(this,"targetType",void 0),p(this,"referenceEl",void 0),this.location=e,this.reactEl=this.insert(t,Yo(Yo({},r),{},{feature:"annotations"})),this.referenceEl=t,this.targetType=n,this.root=Go.createRoot(this.reactEl),this.decorate()}decorate(){throw new Error("Method not implemented.")}destroy(){this.root&&this.root.unmount(),this.reactEl.parentNode&&this.reactEl.parentNode.removeChild(this.reactEl)}exists(e){return e.contains(this.reactEl)}insert(e,t={}){const r=e.ownerDocument||document,n=e.parentNode||r,o=r.createElement("div");return o.classList.add("ba-Layer"),a=t,(i=o)&&Object.values(a).length&&Object.entries(a).forEach(([e,t])=>{const r=`data-resin-${e.toLowerCase()}`,n=function(e){return"object"==typeof e||"function"==typeof e||"symbol"==typeof e?"":"string"==typeof e?e:String(e)}(t);n&&i.setAttribute(r,n)}),n.insertBefore(o,e.nextSibling);var i,a}render(e){throw new Error("Method not implemented.")}style(e){return m(this.reactEl.style,e)}}function Zo(){const e=(0,Wo.useDispatch)();return qo().useEffect(()=>{const t=t=>{t.target?.closest?.(".ba-PopupAnnotation, .ba-Popup")||e(ut(null))};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),null}class Jo extends Xo{decorate(){this.reactEl.classList.add("ba-Layer--deselect"),this.reactEl.dataset.testid="ba-Layer--deselect"}render({store:e}){this.root||(this.root=Go.createRoot(this.reactEl)),this.root.render(Vo.createElement(Wo.Provider,{store:e},Vo.createElement(Zo,null)))}}class Qo{constructor(){p(this,"ownListeners",[])}addListener(e,t){this.ownListeners.push({event:e,listener:t}),Br.addListener(e,t)}emit(e,...t){Br.emit(e,...t)}removeAllListeners(){this.ownListeners.forEach(({event:e,listener:t})=>Br.removeListener(e,t)),this.ownListeners=[]}removeListener(e,t){this.ownListeners=this.ownListeners.filter(r=>!(r.event===e&&r.listener===t)),Br.removeListener(e,t)}}const ei=require("react-intl");function ti(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ri(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const ni=(e="en-US")=>e.substr(0,e.indexOf("-"));window.Intl.PluralRules||(l(1624),l(8139)),window.Intl.RelativeTimeFormat||(l(1113),l(2844));const oi=ri(ri({},{}),{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.hideReplies":"Hide replies","be.activitySidebar.activityFeed.reply":"Reply","be.activitySidebar.activityFeed.replyInThread":"Reply in thread","be.activitySidebar.activityFeed.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.activitySidebarFilter.status.allActivity":"All Activity","be.activitySidebarFilter.status.allComments":"All Comments","be.activitySidebarFilter.status.open":"Unresolved Comments","be.activitySidebarFilter.status.resolved":"Resolved Comments","be.activitySidebarFilter.status.tasks":"Tasks","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app is blocked due to a security policy.","be.annotationThread.errorDeleteAnnotation":"There was an error deleting this item.","be.annotationThread.errorEditAnnotation":"This annotation could not be modified.","be.annotattionThread.errorFetchAnnotation":"The annotation could not be fetched.","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.commentUpdateErrorMessage":"This comment could not be modified.","be.api.repliesFetchErrorMessage":"The replies to this comment could not be loaded.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.archive":"Archive","be.archivedFolder":"Archived Folder","be.back":"Back","be.bookmark":"Bookmark","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.breadcrumb.breadcrumbLabel":"Breadcrumb","be.cancel":"Cancel","be.choose":"Choose","be.clearSelection":"Clear selection","be.close":"Close","be.collaboratedFolder":"Collaborated Folder","be.collapse":"Collapse","be.complete":"Complete","be.contentInsights.contentAnalyticsErrorText":"There was a problem loading content insights. Please try again.","be.contentInsights.contentAnalyticsPermissionError":"Oops! You no longer have access to view content insights.","be.contentInsights.contentInsightsTitle":"Content Insights","be.contentInsights.downloadGraphLabel":"Chart displaying the number of downloads over the selected time period","be.contentInsights.downloadGraphType":"DOWNLOADS","be.contentInsights.openContentInsightsButton":"See Details","be.contentInsights.peopleGraphLabel":"Chart displaying the number of users over the selected time period","be.contentInsights.peopleTitle":"PEOPLE","be.contentInsights.previewGraphLabel":"Chart displaying the number of previews over the selected time period","be.contentInsights.previewGraphType":"PREVIEWS","be.contentInsights.trendDown":"Trending down","be.contentInsights.trendMonth":"PAST MONTH","be.contentInsights.trendThreeMonths":"PAST 3 MONTHS","be.contentInsights.trendUp":"Trending up","be.contentInsights.trendWeek":"PAST WEEK","be.contentInsights.trendYear":"PAST YEAR","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.defaultErrorNoticeText":"Something went wrong. Please try again later.","be.contentSharing.errorNoticeIcon":"Error","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.groupContactLabel":"Group","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.noticeCloseLabel":"Close","be.contentSharing.sendInvitationsError":"{count, plural, one {Failed to invite a collaborator.} other {Failed to invite {count} collaborators.}}","be.contentSharing.sendInvitationsSuccess":"{count, plural, one {Successfully invited a collaborator.} other {Successfully invited {count} collaborators.}}","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityEditMenuItem":"Modify","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivity.annotationActivityResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.annotationActivity.annotationActivityUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.comment.commentResolveMenuItem":"Resolve","be.contentSidebar.activityFeed.comment.commentUnresolveMenuItem":"Unresolve","be.contentSidebar.activityFeed.comment.hideReplies":"Hide replies","be.contentSidebar.activityFeed.comment.inlineCommentAnnotationIconTitle":"Inline Comment","be.contentSidebar.activityFeed.comment.reply":"Reply","be.contentSidebar.activityFeed.comment.replyInThread":"Reply in thread","be.contentSidebar.activityFeed.comment.showReplies":"See {repliesToLoadCount, plural, one {# reply} other {# replies}}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.atMentionTipDescription":"Use the @ symbol to mention users and use the up and down arrow keys to scroll through autocomplete suggestions.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Write a comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentTimestampLabel":"Comment with timestamp","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.activityStatusResolved":"RESOLVED","be.contentSidebar.activityFeed.common.editedMessage":" (edited)","be.contentSidebar.activityFeed.common.seeLessMessage":"See less","be.contentSidebar.activityFeed.common.seeMoreMessage":"See more","be.contentSidebar.activityFeed.common.timestampLabel":"Seek to video timestamp","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.approvalTaskAnnotationIconTitle":"Approval Task","be.contentSidebar.activityFeed.task.generalTaskAnnotationIconTitle":"General Task","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.boxSignFtuxBody":"Sign documents or send signature requests, right from where your content lives","be.contentSidebar.boxSignFtuxTitle":"Box Sign - Secure, seamless e-signatures in Box","be.contentSidebar.boxSignRequest":"Request Signature","be.contentSidebar.boxSignRequestSignature":"Request Signature","be.contentSidebar.boxSignSecurityBlockedTooltip":"This action is unavailable due to a security policy.","be.contentSidebar.boxSignSignMyself":"Sign Myself","be.contentSidebar.boxSignWatermarkBlockedTooltip":"This action is unavailable, because the file is watermarked.","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.contentSidebar.mentionUserSelectorLoading":"Loading users","be.contentSidebar.mentionUserSelectorRoleDescription":"Mention a user","be.contentUploader.cancelAllUploads.body":"Files that are still uploading will be canceled. Completed uploads will not be affected.","be.contentUploader.cancelAllUploads.closeLabel":"Close cancel uploads dialog","be.contentUploader.cancelAllUploads.confirmButton":"Cancel All","be.contentUploader.cancelAllUploads.heading":"Cancel all uploads?","be.contentUploader.cancelAllUploads.keepUploadingButton":"Keep Uploading","be.contentUploader.largeFileWarning.body":"{count, plural, one {This file exceeds} other {These files exceed}} the {maxFileSize} limit on your current plan. <link>Upgrade your plan</link> for larger uploads:","be.contentUploader.largeFileWarning.cancelButton":"Cancel","be.contentUploader.largeFileWarning.closeAriaLabel":"Close","be.contentUploader.largeFileWarning.fileListAriaLabel":"Files exceeding the upload size limit","be.contentUploader.largeFileWarning.heading":"{count, plural, one {File} other {Files}} Can't Be Uploaded","be.contentUploader.largeFileWarning.uploadTheRestButton":"Upload the Rest","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.dateValue.today":"Today","be.dateValue.yesterday":"Yesterday","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.docGenSidebar.checkboxTags":"Checkbox tags","be.docGenSidebar.docGenTags":"Doc Gen Tags","be.docGenSidebar.dropdownTags":"Dropdown tags","be.docGenSidebar.emptyTags":"This document has no tags","be.docGenSidebar.errorTags":"Looks like your recent changes to the Doc Gen template are yet to be processed.","be.docGenSidebar.imageTags":"Image tags","be.docGenSidebar.radiobuttonTags":"Radiobutton tags","be.docGenSidebar.refreshButton":"Process document","be.docGenSidebar.textTags":"Text tags","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.emptyView.errorState":"A network error has occurred while trying to load.","be.emptyView.folderState":"There are no items in this folder.","be.emptyView.loadingState":"Please wait while the items load...","be.emptyView.metadataState":"There are no items in this folder.","be.emptyView.recentsState":"There are no recent items yet.","be.emptyView.searchState":"Sorry, we couldn't find what you're looking for.","be.emptyView.selectedState":"You haven't selected any items yet.","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.externalFolder":"External Folder","be.faceSkill":"Faces","be.file":"File","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folder":"Folder","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.gridView.sliderLabel":"Grid view size","be.iconFile":"{extension} File","be.in":"In","be.interactedDate":"Last accessed on {date}","be.item.archive":"Archive","be.item.archiveFolder":"Archive folder","be.item.bookmark":"Bookmark","be.item.collaboratedFolder":"Collaborated folder","be.item.externalFolder":"External folder","be.item.file":"File","be.item.fileExtension":"{extension} file","be.item.modifiedDateBy":"{date} by {name}","be.item.personalFolder":"Personal folder","be.item.viewedDate":"Viewed {date}","be.item.viewedToday":"Viewed today","be.item.viewedYesterday":"Viewed yesterday","be.itemCreated":"Created","be.itemGrid.gridView":"Grid view","be.itemInteracted":"Last Accessed","be.itemList.actionsColumn":"ACTIONS","be.itemList.dateColumn":"UPDATED","be.itemList.detailsColumn":"DETAILS","be.itemList.itemSubtitle":"{date} • {size}","be.itemList.listView":"List view","be.itemList.nameColumn":"NAME","be.itemList.sizeColumn":"SIZE","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loading":"Loading","be.logo":"Logo","be.max":"max","be.messageCenter.all":"All","be.messageCenter.boxEducation":"Box Education","be.messageCenter.errorFetchingPosts":"Sorry, we are having trouble showing posts at the moment. It may help to refresh the page.","be.messageCenter.events":"Events","be.messageCenter.noPosts":"There are no posts for this category at the moment.","be.messageCenter.previewError":"Sorry, we're having trouble showing this image. ","be.messageCenter.product":"Product","be.messageCenter.title":"What's New","be.metadataUpdateErrorNotification":"Unable to save changes. Please try again.","be.metadataUpdateSuccessNotification":"{numSelected, plural, =1 {1 document updated} other {# documents updated} } ","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.moreOptions":"More options","be.multipleValues":"Multiple Values","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.numFilesSelected":"{numSelected, plural, =0 {0 files selected} one {1 file selected} other {# files selected} } ","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.nextPageButton":"Next","be.pagination.pageEntryStatus":"Showing {startEntryIndex} to {endEntryIndex} of {totalCount} entries","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.pagination.previousPageButton":"Previous","be.personalFolder":"Personal Folder","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"This preview didn’t load. Please try to open or download the file to view.","be.previewErrorBlockedByPolicy":"Your access to this content is restricted due to a security policy.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchClear":"Clear search","be.searchPlaceholder":"Search files and folders","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarBoxAIContent":"content","be.sidebarBoxAISwitchToModalView":"Switch to modal view","be.sidebarBoxAITitle":"Box AI","be.sidebarContentInsights":"Content Insights","be.sidebarDetailsTitle":"Details","be.sidebarDocGenTitle":"Doc Gen Tags","be.sidebarDocGenTooltip":"Box Doc Gen","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTemplateKeyInvalid":"Template names must include at least one letter or number (A–Z, 0–9). Names that are only punctuation or non-Latin characters cannot be saved.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.notAvailable":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.upgradeButton":"Upgrade","be.sidebarVersions.upgradeLink":"Upgrade Now","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberBadgeLowercase":"v{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUpsell":"Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.success":"Success","be.taskModalV2.assigneeFieldRequiredError":"Required Field","be.taskModalV2.assigneePlaceholder":"Add an assignee or group","be.taskModalV2.assigneeSelectorLabel":"Select Assignees","be.taskModalV2.cancelButtonLabel":"Cancel","be.taskModalV2.close":"Close","be.taskModalV2.completionRuleCheckboxLabel":"Only one assignee is required to complete this task","be.taskModalV2.createApprovalTask":"Create Approval Task","be.taskModalV2.createButtonLabel":"Create","be.taskModalV2.createGeneralTask":"Create General Task","be.taskModalV2.createTaskErrorMessage":"An error occurred while creating this task. Please try again.","be.taskModalV2.datePickerCalendarAriaLabel":"Due date calendar","be.taskModalV2.datePickerClearAriaLabel":"Clear due date","be.taskModalV2.datePickerNextMonthAriaLabel":"Next month","be.taskModalV2.datePickerOpenAriaLabel":"Open due date calendar","be.taskModalV2.datePickerPreviousMonthAriaLabel":"Previous month","be.taskModalV2.dueDateLabel":"Due Date (optional)","be.taskModalV2.editApprovalTask":"Modify Approval Task","be.taskModalV2.editApprovalTaskForbiddenMessage":"Unable to remove assignee(s) because the task is now approved.","be.taskModalV2.editForbiddenTitle":"Task Updated with Errors","be.taskModalV2.editGeneralTask":"Modify General Task","be.taskModalV2.editGeneralTaskForbiddenMessage":"Unable to remove assignee(s) because the task is now completed.","be.taskModalV2.groupExceedsLimitWarningMessage":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.taskModalV2.groupExceedsLimitWarningTitle":"Exceeded max assignees per group","be.taskModalV2.inlineNoticeErrorAriaLabel":"Error","be.taskModalV2.inlineNoticeWarningAriaLabel":"Warning","be.taskModalV2.loadingAriaLabel":"Loading","be.taskModalV2.messageFieldRequiredError":"Required Field","be.taskModalV2.messageLabel":"Message","be.taskModalV2.messagePlaceholder":"Write a message","be.taskModalV2.taskErrorTitle":"Error","be.taskModalV2.updateButtonLabel":"Update","be.taskModalV2.updateTaskErrorMessage":"An error occurred while modifying this task. Please try again.","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyState":"Empty state","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorState":"Error state","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadSuccessState":"Success state","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsFileSizeLimitExceededErrorMessageForUpgradeCta":"This file exceeds your plan’s upload limit. Upgrade now to store larger files.","be.uploadsFileSizeLimitExceededUpgradeMessageForUpgradeCta":"Upgrade","be.uploadsInsufficientPermissionsErrorMessage":"You don't have permission to upload to this folder","be.uploadsItemLockedErrorMessage":"File is locked","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPackageUploadErrorMessage":"Failed to upload package file. Please retry by saving as a single file.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersRestored":"{numberOfCollaborators} collaborators restored v{versions}","be.versionMultipleUsersTrashed":"{numberOfCollaborators} collaborators deleted v{versions}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestoreCollapsed":"{name} restored v{versions}","be.versionRestored":"{name} restored v{version_number}","be.versionTrashCollapsed":"{name} deleted v{versions}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.avatar.externalUser":"External user","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.categorySelector.label.more":"More","boxui.classification.add":"Add","boxui.classification.appliedByBoxAi":"Box AI","boxui.classification.appliedByBoxAiOnDate":"Box AI on {modifiedAt}","boxui.classification.appliedByDetails":"{appliedBy} on {appliedAt}","boxui.classification.appliedByTitle":"Applied By","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.importedBy":"Imported from {modifiedBy} on {modifiedAt}","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"Applied by {modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Label","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentAnswers.contentAnswersTitle":"Box AI","boxui.contentAnswers.defaultTooltip":"Get instant answers about this document using Box AI","boxui.contentAnswers.disabledTooltipFileNotCompatible":"Box AI is not currently supported for this file type","boxui.contentAnswers.documentSuggestedQuestionLabel1":"Summarize this document","boxui.contentAnswers.documentSuggestedQuestionLabel2":"What are the key takeaways?","boxui.contentAnswers.documentSuggestedQuestionLabel3":"How can this document be improved?","boxui.contentAnswers.documentSuggestedQuestionLabel4":"Are there any next steps defined?","boxui.contentAnswers.documentSuggestedQuestionPrompt1":"Summarize this document","boxui.contentAnswers.documentSuggestedQuestionPrompt2":"What are the key takeaways?","boxui.contentAnswers.documentSuggestedQuestionPrompt3":"How can this document be improved?","boxui.contentAnswers.documentSuggestedQuestionPrompt4":"Are there any next steps defined?","boxui.contentAnswers.hasQuestionsTooltip":"Return to Box AI","boxui.contentAnswers.welcomeMessageIntelligentQueryNotice":"You can ask Box AI both simple and complex questions in your spreadsheet: total counts, averages, advanced comparisons, trend analyses and so on. Try it out today!","boxui.contentAnswers.welcomeMessageSpreadsheetNotice":"Spreadsheet support works best for text dense files","boxui.contentAnswers.welcomeMessageSpreadsheetNoticeAriaLabel":"spreadsheet support notification banner","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.clickToViewPath":"Click to view path","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.filepath":"File path","boxui.contentExplorer.folderTreeBreadcrumbsText":"{folderName} ({totalItems})","boxui.contentExplorer.includeSubfolders":"Include Subfolders","boxui.contentExplorer.infoNoticeIconAriaLabel":"Info icon","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numFoldersSelected":"{numSelected, plural, =0 {0 folders selected} one {1 folder selected} other {# folders selected} } ","boxui.contentExplorer.numItemsSelected":"{numSelected, plural, =0 {0 items selected} one {1 item selected} other {# items selected} } ","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.result":"{itemsCount} result","boxui.contentExplorer.results":"{itemsCount} results","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectAll":"Select All","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.dateInputMaxError":"Please enter a date before {maxLocaleDate}","boxui.datePicker.dateInputMinError":"Please enter a date after {minLocaleDate}","boxui.datePicker.dateInputRangeError":"Please enter a date between {minLocaleDate} and {maxLocaleDate}","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.commentTimestampLabel":"Comment Timestamp","boxui.draftjs.mentionSelector.noUsersFound":"No users found","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.draftjs.mentionSelector.usersFound":"{usersCount, plural, one {one user found} other {{usersCount} users found}}","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.archived":"Archived","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.filesCountLabel":"{filesCount, plural, one {# File} other {# Files}}","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.media.menuButtonArialLabel":"Options","boxui.metadataInstanceEditor.aiAutofillDescription":"Use Box AI to automatically extract metadata values.","boxui.metadataInstanceEditor.aiAutofillLearnMore":"Learn more","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNotice":"This cascade policy cannot be edited. To modify it, deactivate the current policy and then re-enable it to set up a new one.","boxui.metadataInstanceEditor.cascadePolicyOptionsDisabledNoticeIconAriaLabel":"Disabled cascade options information","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customExtractAgentManageButton":"Manage agent","boxui.metadataInstanceEditor.customExtractAgentNoticeDescription":"This policy is managed by an agent. Manage the agent to change the configuration.","boxui.metadataInstanceEditor.customExtractAgentNoticeIconAriaLabel":"Locked","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableAIAutofill":"Box AI Autofill","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.enhancedAgentName":"Enhanced","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.standardAgentName":"Standard","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.backModalText":"Back","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.presence.toggleButtonLabel":"Recent Activity","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.accessibilityInstructions":"For security purposes, please drag the cloud object onto the target. You are on a {row} by {column} grid with a movable cloud object and a target area. Press spacebar to grab the cloud object, arrow keys to move, and spacebar to drop on the target.","boxui.securityCloudGame.cloudDropped":"Cloud object dropped.","boxui.securityCloudGame.cloudGrabbed":"Cloud object grabbed.","boxui.securityCloudGame.cloudObject":"Cloud object","boxui.securityCloudGame.currentPosition":"Current position: Row {row}, Column {column}.","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud onto the dark cloud. Keyboard users: Press spacebar to grab the cloud, arrow keys to move, and spacebar to drop.","boxui.securityCloudGame.reachBottomEdge":"Reached bottom edge of grid.","boxui.securityCloudGame.reachLeftEdge":"Reached left edge of grid.","boxui.securityCloudGame.reachRightEdge":"Reached right edge of grid.","boxui.securityCloudGame.reachTopEdge":"Reached top edge of grid.","boxui.securityCloudGame.success":"Success!","boxui.securityCloudGame.target":"Target","boxui.securityCloudGame.targetInRange":"Target in range, you can drop the cloud object.","boxui.securityCloudGame.targetPosition":"Target position: Row {row}, Column {column}.","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.allIntegrationNames":"All integrations: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadRestricted":"Download restricted for some applications.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.appPreviewBlacklist":"Read restricted for some applications: {appNames}","boxui.securityControls.appPreviewBlacklistOverflow":"Read restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appPreviewRestricted":"Read restricted for some applications.","boxui.securityControls.appPreviewWhitelist":"Only selected applications can read: {appNames}","boxui.securityControls.appPreviewWhitelistDefault":"Only selected applications can read.","boxui.securityControls.appPreviewWhitelistOverflow":"Only selected applications can read: {appNames} +{remainingAppCount} more","boxui.securityControls.boxSignRequestRestricted":"Sign restrictions apply.","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.integrationDownloadAllowlist":"Only select integrations are allowed: {appNames}","boxui.securityControls.integrationDownloadAllowlistOverflow":"Only select integrations are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.integrationDownloadDenylist":"Download restricted for some integrations: {appNames}","boxui.securityControls.integrationDownloadDenylistOverflow":"Download restricted for some integrations: {appNames} +{remainingAppCount} more","boxui.securityControls.integrationDownloadRestricted":"Download restricted for some integrations.","boxui.securityControls.integrationPreviewAllowlist":"Only select integrations can read: {appNames}","boxui.securityControls.integrationPreviewAllowlistDefault":"Only select integrations can read.","boxui.securityControls.integrationPreviewAllowlistOverflow":"Only select integrations can read: {appNames} +{remainingAppCount} more","boxui.securityControls.integrationPreviewDenylist":"Read restricted for some integrations: {appNames}","boxui.securityControls.integrationPreviewDenylistOverflow":"Read restricted for some integrations: {appNames} +{remainingAppCount} more","boxui.securityControls.integrationPreviewRestricted":"Read restricted for some integrations.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for “{itemName}”","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharedLinkAutoExpirationApplied":"Shared Link Auto-Expiration applied.","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortAppIntegrationSignSharedLinkAutoExpiration":"App, integration, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortAppSharedLinkAutoExpiration":"App and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortAppSign":"App and Sign restrictions apply","boxui.securityControls.shortAppSignSharedLinkAutoExpiration":"App, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortDownloadAppIntegrationSharedLinkAutoExpiration":"Download, app, integration and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortDownloadAppSharedLinkAutoExpiration":"Download, app and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortDownloadAppSign":"Download, app and Sign restrictions apply","boxui.securityControls.shortDownloadAppSignSharedLinkAutoExpiration":"Download, app, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortDownloadIntegration":"Download and integration restrictions apply","boxui.securityControls.shortDownloadIntegrationSharedLinkAutoExpiration":"Download, integration and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortDownloadIntegrationSign":"Download, integration and Sign restrictions apply","boxui.securityControls.shortDownloadIntegrationSignSharedLinkAutoExpiration":"Download, integration, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortDownloadSharedLinkAutoExpiration":"Download and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortDownloadSign":"Download and Sign restrictions apply","boxui.securityControls.shortDownloadSignSharedLinkAutoExpiration":"Download, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortIntegration":"Integration restrictions apply","boxui.securityControls.shortIntegrationSharedLinkAutoExpiration":"Integration and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortIntegrationSign":"Integration and Sign restrictions apply","boxui.securityControls.shortIntegrationSignSharedLinkAutoExpiration":"Integration, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharedLinkAutoExpiration":"Shared Link Auto-Expiration restriction applies","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingAppIntegrationSharedLinkAutoExpiration":"Sharing, app, integration and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingAppSharedLinkAutoExpiration":"Sharing, app and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingAppSign":"Sharing, app and Sign restrictions apply","boxui.securityControls.shortSharingAppSignSharedLinkAutoExpiration":"Sharing, app, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.shortSharingDownloadApp":"Sharing, download and app restrictions apply","boxui.securityControls.shortSharingDownloadAppSharedLinkAutoExpiration":"Sharing, download, app and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingDownloadAppSign":"Sharing, download, app and Sign restrictions apply","boxui.securityControls.shortSharingDownloadAppSignSharedLinkAutoExpiration":"Sharing, download, app, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingDownloadIntegration":"Sharing, download and integration restrictions apply","boxui.securityControls.shortSharingDownloadIntegrationSharedLinkAutoExpiration":"Sharing, download, integration and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingDownloadIntegrationSign":"Sharing, download, integration and Sign restrictions apply","boxui.securityControls.shortSharingDownloadIntegrationSignSharedLinkAutoExpiration":"Sharing, download, integration, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingDownloadSharedLinkAutoExpiration":"Sharing, download and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingDownloadSign":"Sharing, download and Sign restrictions apply","boxui.securityControls.shortSharingDownloadSignSharedLinkAutoExpiration":"Sharing, download, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingIntegration":"Sharing and integration restrictions apply","boxui.securityControls.shortSharingIntegrationSharedLinkAutoExpiration":"Sharing, integration and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingIntegrationSign":"Sharing, integration and Sign restrictions apply","boxui.securityControls.shortSharingIntegrationSignSharedLinkAutoExpiration":"Sharing, integration, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingSharedLinkAutoExpiration":"Sharing and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSharingSign":"Sharing and Sign restrictions apply","boxui.securityControls.shortSharingSignSharedLinkAutoExpiration":"Sharing, Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortSign":"Sign restrictions apply","boxui.securityControls.shortSignSharedLinkAutoExpiration":"Sign and Shared Link Auto-Expiration restrictions apply","boxui.securityControls.shortWatermarking":"Watermarking applies","boxui.securityControls.viewAll":"View All","boxui.securityControls.watermarkingApplied":"Watermarking will be applied.","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.select.moreInfo":"More Info","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.subHeader.bulkItemActionMenuAriaLabel":"Bulk actions","boxui.subHeader.metadata":"Metadata","boxui.timeInput.emptyTimeError":"Required field. Enter a time in the format HH:MM A.","boxui.timeInput.invalidTimeError":"Invalid time format. Enter a time in the format HH:MM A.","boxui.unifiedShare.collabAccess":"collaborator access","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactEmailsTooltipText":"{emails}, and {remainingEmailsCount} more","boxui.unifiedShare.contactRestrictionNotice":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrier":"{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingular":"Invitations cannot be sent to {email} due to a security policy.","boxui.unifiedShare.contactRestrictionNoticeInformationBarrierSingularGroup":'Invitations cannot be sent to "{groupName}" due to a security policy.',"boxui.unifiedShare.contactRestrictionNoticeSingular":"Invitations cannot be sent to {email} because external collaboration is restricted due to the applied security policy.","boxui.unifiedShare.contactRestrictionRemoveButtonLabel":"Remove to continue","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option is not available due to a security policy.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.expiresMessage":"Expires","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxEditPermissionTooltipBody":"Select the new edit option to easily share your file with people or groups.","boxui.unifiedShare.ftuxEditPermissionTooltipTitle":"Collaboration made easy","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.ftuxSharedLinkPermissionsEditTag":"NEW","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.justifiableContactRestrictionNotice":"This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionNoticeSingular":"This content requires a business justification to invite {email}. Please select a business justification below.","boxui.unifiedShare.justifiableContactRestrictionRemoveButtonLabel":"Alternatively, remove to continue","boxui.unifiedShare.justificationRequiredError":"Select a justification or remove to continue","boxui.unifiedShare.justificationSelectPlaceholder":"Select Justification","boxui.unifiedShare.levelOfCollabAccess":"Set the level of {collaboratorAccess} and increase security through one of our paid plans. {upgradeLink}","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInCompanyCanAccessHub":"Anyone in your company with the link or people invited to this hub can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInItemCanAccessHub":"Only invited people can access this hub","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessHub":"Anyone at {company} with the link or people invited to this hub can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeCollaboratorConfirmationDescription":"Are you sure you want to remove {name} as a collaborator?","boxui.unifiedShare.removeCollaboratorConfirmationTitle":"Remove Collaborator","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.restrictedContactsError":"Remove to continue","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkEditablePubliclyAvailable":"Publicly available for anyone to view and download. Any logged in users with the link can edit.","boxui.unifiedShare.sharedLinkElevatedEditableCompanyAvailable":"People who have access to this link can edit.","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.upgradeInlineNoticeTitle":"Upgrade Your Plan","boxui.unifiedShare.upgradeLink":"Upgrade now","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidDateError":"Invalid Date","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"}),ii=(0,ei.createIntlCache)(),ai=(0,ei.defineMessages)({annotationsClose:{id:"ba.annotationsClose",description:"Label for the close button",defaultMessage:"Close"},annotationsSave:{id:"ba.annotationsSave",description:"Label for the save button",defaultMessage:"Save"},annotationsPost:{id:"ba.annotationsPost",description:"Label for the post button",defaultMessage:"Post"},annotationsCreateError:{id:"ba.annotationsCreateError",description:"Error message when creating",defaultMessage:"We’re sorry, the annotation could not be created."},annotationsLoadError:{id:"ba.annotationsLoadError",description:"Error message when loading",defaultMessage:"We’re sorry, the annotations failed to load for this file."}}),si={x:0,y:0};function ci(e,t,r={}){const{offsets:n=si,smooth:o=!1}=r,{x:i,y:a}=n,{left:s,top:c}=e.getBoundingClientRect(),{height:u,left:l,top:d,width:p}=t.getBoundingClientRect(),f=Math.round(e.clientWidth/2),h=Math.round(e.clientHeight/2),g=l-s-f+Math.round(p*(i/100)),m=d-c-h+Math.round(u*(a/100)),y=Math.max(0,Math.min(e.scrollLeft+g,e.scrollWidth)),b=Math.max(0,Math.min(e.scrollTop+m,e.scrollHeight));o?e.scrollTo({left:y,top:b,behavior:"smooth"}):(e.scrollLeft=y,e.scrollTop=b)}const ui="ba-annotations-loaded",li={[g.HIGHLIGHT]:"ba-is-create--highlight",[g.REGION]:"ba-is-create--region"};class di extends Qo{constructor({apiHost:e,container:t,features:r={},file:n,fileOptions:o,initialColor:i,initialMode:a,initialViewMode:s="annotations",intl:c,onCopyLink:u,token:l}){super(),p(this,"annotatedEl",void 0),p(this,"containerEl",void 0),p(this,"popupPortalEl",void 0),p(this,"container",void 0),p(this,"deselectManager",null),p(this,"features",void 0),p(this,"intl",void 0),p(this,"onCopyLink",void 0),p(this,"store",void 0),p(this,"removeAnnotation",e=>{this.store.dispatch(ct(e))}),p(this,"handleRemove",e=>{this.removeAnnotation(e)}),p(this,"handleScale",({rotationAngle:e,scale:t})=>{this.init(t,e)}),p(this,"handleSetActive",e=>{const t=this.store.getState();e&&t?.annotations?.isInitialized&&!Me(t,e)?this.store.dispatch(lt()):this.setActiveId(e)}),p(this,"handleSetVisible",e=>{this.setVisibility(e)}),p(this,"handleSetColor",e=>{this.setColor(e)}),p(this,"handleSetBoundingBoxHighlights",e=>{this.setBoundingBoxHighlights(e)}),p(this,"handleNavigateBoundingBoxHighlight",e=>{this.scrollToBoundingBoxHighlight(e)}),p(this,"handleSelectBoundingBoxHighlight",e=>{this.selectBoundingBoxHighlight(e)}),p(this,"handleSetViewMode",({viewMode:e})=>{this.setViewMode(e)}),p(this,"handleSidebarAnnotationUpdate",e=>{this.store.dispatch(ot(e))}),p(this,"handleSidebarReplyCreate",e=>{this.store.dispatch(it(e))}),p(this,"handleSidebarReplyUpdate",e=>{this.store.dispatch(st(e))}),p(this,"handleSidebarReplyDelete",({annotationId:e,id:t})=>{this.store.dispatch(at({annotationId:e,replyId:t}))}),p(this,"removeAnnotationClasses",()=>{if(!this.annotatedEl)return;const e=this.annotatedEl;Object.values(li).forEach(t=>{t&&e.classList.remove(t)})});const d=o?.[n.id],f=d?.currentFileVersionId,h=d?.fileVersionId,g=n.file_version.id,m={annotations:{activeId:d?.annotations?.activeId??null},common:{color:i,mode:a},options:{apiHost:e,features:r,fileId:n.id,fileVersionId:h??g,isCurrentFileVersion:!h||h===f,permissions:n.permissions,token:l,viewMode:s}};this.container=t,this.features=r,this.intl=(({language:e,locale:t,messages:r=oi}={})=>(0,ei.createIntl)({messages:r,locale:t||ni(e)},ii))(c),this.onCopyLink=u,this.store=Tn(m,{api:new zo({apiHost:e,token:l})}),this.addListener(Nr.SCALE,this.handleScale),this.addListener(Rr.ACTIVE_SET,this.handleSetActive),this.addListener(Rr.ANNOTATION_REMOVE,this.handleRemove),this.addListener(Rr.COLOR_SET,this.handleSetColor),this.addListener(Rr.VISIBLE_SET,this.handleSetVisible),this.addListener(Rr.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.addListener(Rr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.addListener(Rr.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.addListener(Rr.VIEW_MODE_SET,this.handleSetViewMode),this.addListener(jr.SIDEBAR_ANNOTATION_UPDATE,this.handleSidebarAnnotationUpdate),this.addListener(jr.SIDEBAR_REPLY_CREATE,this.handleSidebarReplyCreate),this.addListener(jr.SIDEBAR_REPLY_UPDATE,this.handleSidebarReplyUpdate),this.addListener(jr.SIDEBAR_REPLY_DELETE,this.handleSidebarReplyDelete),this.hydrate()}destroy(){this.containerEl&&this.containerEl.classList.remove("ba"),this.popupPortalEl&&(this.popupPortalEl.remove(),this.popupPortalEl=null),this.annotatedEl&&this.annotatedEl.classList.remove(ui),this.deselectManager&&this.deselectManager.destroy(),this.removeAnnotationClasses(),this.removeListener(Nr.SCALE,this.handleScale),this.removeListener(Rr.ACTIVE_SET,this.handleSetActive),this.removeListener(Rr.ANNOTATION_REMOVE,this.handleRemove),this.removeListener(Rr.COLOR_SET,this.handleSetColor),this.removeListener(Rr.VISIBLE_SET,this.handleSetVisible),this.removeListener(Rr.BOUNDING_BOX_HIGHLIGHTS_SET,this.handleSetBoundingBoxHighlights),this.removeListener(Rr.BOUNDING_BOX_HIGHLIGHT_NAVIGATE,this.handleNavigateBoundingBoxHighlight),this.removeListener(Rr.BOUNDING_BOX_HIGHLIGHT_SELECT,this.handleSelectBoundingBoxHighlight),this.removeListener(Rr.VIEW_MODE_SET,this.handleSetViewMode),this.removeListener(jr.SIDEBAR_ANNOTATION_UPDATE,this.handleSidebarAnnotationUpdate),this.removeListener(jr.SIDEBAR_REPLY_CREATE,this.handleSidebarReplyCreate),this.removeListener(jr.SIDEBAR_REPLY_UPDATE,this.handleSidebarReplyUpdate),this.removeListener(jr.SIDEBAR_REPLY_DELETE,this.handleSidebarReplyDelete)}init(e=1,t=0){this.containerEl=this.getElement(this.container),this.annotatedEl=this.getAnnotatedElement(),this.annotatedEl&&this.containerEl?(this.annotatedEl.classList.add(ui),this.containerEl.classList.add("ba"),this.popupPortalEl||(this.popupPortalEl=this.containerEl.ownerDocument.createElement("div"),this.popupPortalEl.classList.add("ba-PopupPortal"),this.containerEl.appendChild(this.popupPortalEl)),this.render(),this.store.dispatch(jt(t)),this.store.dispatch(Nt(e)),this.store.dispatch(dt())):this.emit(Nr.ERROR,this.intl.formatMessage(ai.annotationsLoadError))}isFeatureEnabled(e=""){return h()(this.features,e,!1)}scrollToAnnotation(e){}scrollToBoundingBoxHighlight(e){if(!e||!this.annotatedEl)return;const t=Ur(this.store.getState()).find(t=>t.id===e);if(!t)return;const r=this.getScrollReferenceForHighlight(t);if(!r)return;const n={x:t.x+t.width/2,y:t.y+t.height/2};ci(this.annotatedEl,r,{offsets:this.getAdjustedScrollOffsets(n),smooth:!0})}getScrollReferenceForHighlight(e){}getAdjustedScrollOffsets(e){return e}setBoundingBoxHighlights(e){this.store.dispatch(Or(e)),this.render()}setViewMode(e){this.store.dispatch(Ft(e)),this.render()}selectBoundingBoxHighlight(e){this.store.dispatch(Cr(e)),e&&this.scrollToBoundingBoxHighlight(e)}setActiveId(e){this.store.dispatch(ut(e))}setColor(e){this.store.dispatch(qt(e))}setVisibility(e){this.containerEl&&(e?this.containerEl.classList.remove("is-hidden"):this.containerEl.classList.add("is-hidden"))}toggleAnnotationMode(e){this.store.dispatch(Gt(e))}getAnnotatedElement(){}getElement(e){return"string"==typeof e?document.querySelector(e):e}hydrate(){this.store.dispatch(Je())}render(){}postRender(){this.annotatedEl&&(this.deselectManager&&this.deselectManager.destroy(),this.deselectManager=new Jo({referenceEl:this.annotatedEl}),this.deselectManager.render({store:this.store}))}}var pi=l(2326),fi=l.n(pi),hi=l(818),gi=l.n(hi),mi=l(2485),yi=l.n(mi);const bi=["children","className","getRef","handleOverlayKeyDown","shouldDefaultFocus","shouldOutlineFocus"];function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vi.apply(null,arguments)}function wi(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Si extends Vo.Component{constructor(...e){super(...e),wi(this,"focusFirstElement",()=>{if(!this.el)return;const e=gi()(this.el);e.length>3?e[1].focus():this.trapEl&&this.trapEl.focus()}),wi(this,"focusLastElement",()=>{if(!this.el)return;const e=gi()(this.el);e.length>3?e[e.length-3].focus():this.trapEl&&this.trapEl.focus()}),wi(this,"handleElKeyDown",e=>{const{handleOverlayKeyDown:t}=this.props;this.el===document.activeElement&&"Tab"===e.key&&(this.focusFirstElement(),e.stopPropagation(),e.preventDefault()),t&&t(e)}),wi(this,"handleTrapElKeyDown",e=>{"Tab"===e.key&&(e.stopPropagation(),e.preventDefault())})}componentDidMount(){this.props.shouldDefaultFocus?setTimeout(()=>{this.previousFocusEl=document.activeElement,this.focusFirstElement()},0):setTimeout(()=>{this.el&&this.el.focus()},0)}componentWillUnmount(){setTimeout(()=>{this.previousFocusEl&&this.previousFocusEl.focus()},0)}render(){const e=this.props,{children:t,className:r,getRef:n,handleOverlayKeyDown:o,shouldDefaultFocus:i,shouldOutlineFocus:a}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,bi);return Vo.createElement("div",vi({ref:e=>{this.el=e,n&&n(e)},className:yi()(r,{"should-outline-focus":a}),onKeyDown:this.handleElKeyDown},s),Vo.createElement("i",{"aria-hidden":!0,onFocus:this.focusLastElement,tabIndex:0}),t,Vo.createElement("i",{"aria-hidden":!0,onFocus:this.focusFirstElement,tabIndex:0}),Vo.createElement("i",{ref:e=>{this.trapEl=e},"aria-hidden":!0,onKeyDown:this.handleTrapElKeyDown,tabIndex:0}))}}const xi=Si;var Ei=l(5143);const _i=new Ei.CompositeDecorator([{strategy:(e,t,r)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===r.getEntity(t).getType()},t)},component:({contentState:e,entityKey:t,children:r})=>{const n=t?e.getEntity(t).getData().id:"";return Vo.createElement("a",{href:`/profile/${n}`},r)}}]),Oi="UNEDITABLE_TIMESTAMP_TEXT",Ci=["@","@","﹫"].reduce((e,t)=>`${e}\\${t}`,""),ki=new RegExp(`([${Ci}])([^${Ci}]*)$`),Ai=(e,t=ki)=>{const r=e.getCurrentContent(),n=e.getSelection(),o=n.getStartKey(),i=r.getBlockForKey(o),a=n.getStartOffset();let s=null;return i.findEntityRanges(e=>null===e.getEntity(),(e,r)=>{if(e<=a&&a<=r){const r=i.getText().substr(e,a-e).match(t);r&&(s={blockID:o,mentionString:r[2],mentionTrigger:r[1],start:e+r.index,end:a})}return null}),s},Ti=e=>{const t=e.getCurrentContent(),r=t.getBlockMap(),n=[];let o=!1;return r.forEach(e=>{const r=e.getText(),i=[];e.findEntityRanges(()=>!0,(n,a)=>{const s=e.getEntityAt(n);if(s){const e=t.getEntity(s),c="MENTION"===e.getType(),u=e.getType()===Oi;if(c){const t=`@[${e.getData().id}:${r.substring(n+1,a)}]`;i.push(t),o=!0}else if(u){const{timestampInMilliseconds:t,fileVersionId:r}=e.getData(),n=((e,t)=>`#[timestamp:${e},versionId:${t}] `)(t,r);i.push(n)}else i.push(r.substring(n,a))}else i.push(r.substring(n,a))}),n.push(i.join(""))}),{text:n.join("\n").trim(),hasMention:o}},Di=e=>{const t=/([@@﹫])\[(\d+):([^\]]+)]/gi.exec(e);if(!t)return null;const[r,n,o,i]=t,a=t.index;return{start:a,end:a+r.length,data:{id:o,name:i,content:`${n}${i}`}}},Ii=e=>{const t=e.match(/#\[timestamp:(\d+),versionId:(\d+)\]/);if(!t)return null;const[r,n,o]=t,i=parseInt(n,10),a=(e=>{if(!e||e<0)return"0:00:00";const t=Math.floor(e/Jn),r=Math.floor(e%Jn/6e4),n=Math.floor(e%6e4/1e3);return`${t.toString()}:${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`})(i),s=e.indexOf(r);return{start:s,end:s+r.length,data:{timestampInMilliseconds:i,fileVersionId:o,content:a}}},Pi=(e,t,r)=>{if(!r)return e;const{data:n,start:o,end:i}=r,a=e.createEntity(Oi,"IMMUTABLE",n),s=a.getLastCreatedEntityKey(),c=Ei.SelectionState.createEmpty(t.getKey()).merge({anchorOffset:o,focusOffset:i});return Ei.Modifier.replaceText(a,c,n.content,null,s)};var Li=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Mi}(e)}(e)},Mi="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ri(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ni((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function ji(e,t,r){return e.concat(t).map(function(e){return Ri(e,r)})}function Ni(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||ji,r.isMergeableObject=r.isMergeableObject||Li;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=Ri(e[t],r)}),Object.keys(t).forEach(function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=Ni(e[o],t[o],r):n[o]=Ri(t[o],r)}),n}(e,t,r):Ri(t,r)}Ni.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return Ni(e,r,t)},{})};const Fi=Ni,Bi="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;var Ui="object"==typeof self&&self&&self.Object===Object&&self;const Ki=Bi||Ui||Function("return this")(),Hi=Ki.Symbol;var zi=Object.prototype,Vi=zi.hasOwnProperty,qi=zi.toString,Gi=Hi?Hi.toStringTag:void 0;var Wi=Object.prototype.toString;var $i=Hi?Hi.toStringTag:void 0;const Yi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$i&&$i in Object(e)?function(e){var t=Vi.call(e,Gi),r=e[Gi];try{e[Gi]=void 0;var n=!0}catch(e){}var o=qi.call(e);return n&&(t?e[Gi]=r:delete e[Gi]),o}(e):function(e){return Wi.call(e)}(e)},Xi=function(e,t){return function(r){return e(t(r))}},Zi=Xi(Object.getPrototypeOf,Object),Ji=function(e){return null!=e&&"object"==typeof e};var Qi=Function.prototype,ea=Object.prototype,ta=Qi.toString,ra=ea.hasOwnProperty,na=ta.call(Object);const oa=function(e){if(!Ji(e)||"[object Object]"!=Yi(e))return!1;var t=Zi(e);if(null===t)return!0;var r=ra.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ta.call(r)==na},ia=function(e,t){return e===t||e!=e&&t!=t},aa=function(e,t){for(var r=e.length;r--;)if(ia(e[r][0],t))return r;return-1};var sa=Array.prototype.splice;function ca(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ca.prototype.clear=function(){this.__data__=[],this.size=0},ca.prototype.delete=function(e){var t=this.__data__,r=aa(t,e);return!(r<0||(r==t.length-1?t.pop():sa.call(t,r,1),--this.size,0))},ca.prototype.get=function(e){var t=this.__data__,r=aa(t,e);return r<0?void 0:t[r][1]},ca.prototype.has=function(e){return aa(this.__data__,e)>-1},ca.prototype.set=function(e,t){var r=this.__data__,n=aa(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};const ua=ca,la=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},da=function(e){if(!la(e))return!1;var t=Yi(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},pa=Ki["__core-js_shared__"];var fa,ha=(fa=/[^.]+$/.exec(pa&&pa.keys&&pa.keys.IE_PROTO||""))?"Symbol(src)_1."+fa:"";var ga=Function.prototype.toString;const ma=function(e){if(null!=e){try{return ga.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ya=/^\[object .+?Constructor\]$/,ba=Function.prototype,va=Object.prototype,wa=ba.toString,Sa=va.hasOwnProperty,xa=RegExp("^"+wa.call(Sa).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ea=function(e){return!(!la(e)||(t=e,ha&&ha in t))&&(da(e)?xa:ya).test(ma(e));var t},_a=function(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ea(r)?r:void 0},Oa=_a(Ki,"Map"),Ca=_a(Object,"create");var ka=Object.prototype.hasOwnProperty;var Aa=Object.prototype.hasOwnProperty;function Ta(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ta.prototype.clear=function(){this.__data__=Ca?Ca(null):{},this.size=0},Ta.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ta.prototype.get=function(e){var t=this.__data__;if(Ca){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ka.call(t,e)?t[e]:void 0},Ta.prototype.has=function(e){var t=this.__data__;return Ca?void 0!==t[e]:Aa.call(t,e)},Ta.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&void 0===t?"__lodash_hash_undefined__":t,this};const Da=Ta,Ia=function(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function Pa(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pa.prototype.clear=function(){this.size=0,this.__data__={hash:new Da,map:new(Oa||ua),string:new Da}},Pa.prototype.delete=function(e){var t=Ia(this,e).delete(e);return this.size-=t?1:0,t},Pa.prototype.get=function(e){return Ia(this,e).get(e)},Pa.prototype.has=function(e){return Ia(this,e).has(e)},Pa.prototype.set=function(e,t){var r=Ia(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};const La=Pa;function Ma(e){var t=this.__data__=new ua(e);this.size=t.size}Ma.prototype.clear=function(){this.__data__=new ua,this.size=0},Ma.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ma.prototype.get=function(e){return this.__data__.get(e)},Ma.prototype.has=function(e){return this.__data__.has(e)},Ma.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ua){var n=r.__data__;if(!Oa||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new La(n)}return r.set(e,t),this.size=r.size,this};const Ra=Ma,ja=function(){try{var e=_a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Na=function(e,t,r){"__proto__"==t&&ja?ja(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var Fa=Object.prototype.hasOwnProperty;const Ba=function(e,t,r){var n=e[t];Fa.call(e,t)&&ia(n,r)&&(void 0!==r||t in e)||Na(e,t,r)},Ua=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?Na(r,s,c):Ba(r,s,c)}return r},Ka=function(e){return Ji(e)&&"[object Arguments]"==Yi(e)};var Ha=Object.prototype,za=Ha.hasOwnProperty,Va=Ha.propertyIsEnumerable;const qa=Ka(function(){return arguments}())?Ka:function(e){return Ji(e)&&za.call(e,"callee")&&!Va.call(e,"callee")},Ga=Array.isArray;var Wa="object"==typeof exports&&exports&&!exports.nodeType&&exports,$a=Wa&&"object"==typeof module&&module&&!module.nodeType&&module,Ya=$a&&$a.exports===Wa?Ki.Buffer:void 0;const Xa=(Ya?Ya.isBuffer:void 0)||function(){return!1};var Za=/^(?:0|[1-9]\d*)$/;const Ja=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Za.test(e))&&e>-1&&e%1==0&&e<t},Qa=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var es={};es["[object Float32Array]"]=es["[object Float64Array]"]=es["[object Int8Array]"]=es["[object Int16Array]"]=es["[object Int32Array]"]=es["[object Uint8Array]"]=es["[object Uint8ClampedArray]"]=es["[object Uint16Array]"]=es["[object Uint32Array]"]=!0,es["[object Arguments]"]=es["[object Array]"]=es["[object ArrayBuffer]"]=es["[object Boolean]"]=es["[object DataView]"]=es["[object Date]"]=es["[object Error]"]=es["[object Function]"]=es["[object Map]"]=es["[object Number]"]=es["[object Object]"]=es["[object RegExp]"]=es["[object Set]"]=es["[object String]"]=es["[object WeakMap]"]=!1;const ts=function(e){return function(t){return e(t)}};var rs="object"==typeof exports&&exports&&!exports.nodeType&&exports,ns=rs&&"object"==typeof module&&module&&!module.nodeType&&module,os=ns&&ns.exports===rs&&Bi.process;const is=function(){try{return ns&&ns.require&&ns.require("util").types||os&&os.binding&&os.binding("util")}catch(e){}}();var as=is&&is.isTypedArray;const ss=as?ts(as):function(e){return Ji(e)&&Qa(e.length)&&!!es[Yi(e)]};var cs=Object.prototype.hasOwnProperty;const us=function(e,t){var r=Ga(e),n=!r&&qa(e),o=!r&&!n&&Xa(e),i=!r&&!n&&!o&&ss(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!cs.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ja(u,c))||s.push(u);return s};var ls=Object.prototype;const ds=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ls)},ps=Xi(Object.keys,Object);var fs=Object.prototype.hasOwnProperty;const hs=function(e){return null!=e&&Qa(e.length)&&!da(e)},gs=function(e){return hs(e)?us(e):function(e){if(!ds(e))return ps(e);var t=[];for(var r in Object(e))fs.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)};var ms=Object.prototype.hasOwnProperty;const ys=function(e){if(!la(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ds(e),r=[];for(var n in e)("constructor"!=n||!t&&ms.call(e,n))&&r.push(n);return r},bs=function(e){return hs(e)?us(e,!0):ys(e)};var vs="object"==typeof exports&&exports&&!exports.nodeType&&exports,ws=vs&&"object"==typeof module&&module&&!module.nodeType&&module,Ss=ws&&ws.exports===vs?Ki.Buffer:void 0,xs=Ss?Ss.allocUnsafe:void 0;const Es=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},_s=function(){return[]};var Os=Object.prototype.propertyIsEnumerable,Cs=Object.getOwnPropertySymbols;const ks=Cs?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(Cs(e),function(t){return Os.call(e,t)}))}:_s,As=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},Ts=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)As(t,ks(e)),e=Zi(e);return t}:_s,Ds=function(e,t,r){var n=t(e);return Ga(e)?n:As(n,r(e))},Is=function(e){return Ds(e,gs,ks)},Ps=function(e){return Ds(e,bs,Ts)},Ls=_a(Ki,"DataView"),Ms=_a(Ki,"Promise"),Rs=_a(Ki,"Set"),js=_a(Ki,"WeakMap");var Ns="[object Map]",Fs="[object Promise]",Bs="[object Set]",Us="[object WeakMap]",Ks="[object DataView]",Hs=ma(Ls),zs=ma(Oa),Vs=ma(Ms),qs=ma(Rs),Gs=ma(js),Ws=Yi;(Ls&&Ws(new Ls(new ArrayBuffer(1)))!=Ks||Oa&&Ws(new Oa)!=Ns||Ms&&Ws(Ms.resolve())!=Fs||Rs&&Ws(new Rs)!=Bs||js&&Ws(new js)!=Us)&&(Ws=function(e){var t=Yi(e),r="[object Object]"==t?e.constructor:void 0,n=r?ma(r):"";if(n)switch(n){case Hs:return Ks;case zs:return Ns;case Vs:return Fs;case qs:return Bs;case Gs:return Us}return t});const $s=Ws;var Ys=Object.prototype.hasOwnProperty;const Xs=Ki.Uint8Array,Zs=function(e){var t=new e.constructor(e.byteLength);return new Xs(t).set(new Xs(e)),t};var Js=/\w*$/;var Qs=Hi?Hi.prototype:void 0,ec=Qs?Qs.valueOf:void 0;const tc=function(e,t,r){var n,o,i,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Zs(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?Zs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var r=t?Zs(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,Js.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=e,ec?Object(ec.call(n)):{}}};var rc=Object.create;const nc=function(){function e(){}return function(t){if(!la(t))return{};if(rc)return rc(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var oc=is&&is.isMap;const ic=oc?ts(oc):function(e){return Ji(e)&&"[object Map]"==$s(e)};var ac=is&&is.isSet;const sc=ac?ts(ac):function(e){return Ji(e)&&"[object Set]"==$s(e)};var cc="[object Arguments]",uc="[object Function]",lc="[object Object]",dc={};dc[cc]=dc["[object Array]"]=dc["[object ArrayBuffer]"]=dc["[object DataView]"]=dc["[object Boolean]"]=dc["[object Date]"]=dc["[object Float32Array]"]=dc["[object Float64Array]"]=dc["[object Int8Array]"]=dc["[object Int16Array]"]=dc["[object Int32Array]"]=dc["[object Map]"]=dc["[object Number]"]=dc[lc]=dc["[object RegExp]"]=dc["[object Set]"]=dc["[object String]"]=dc["[object Symbol]"]=dc["[object Uint8Array]"]=dc["[object Uint8ClampedArray]"]=dc["[object Uint16Array]"]=dc["[object Uint32Array]"]=!0,dc["[object Error]"]=dc[uc]=dc["[object WeakMap]"]=!1;const pc=function e(t,r,n,o,i,a){var s,c=1&r,u=2&r,l=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!la(t))return t;var d=Ga(t);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Ys.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(t),!c)return Es(t,s)}else{var p=$s(t),f=p==uc||"[object GeneratorFunction]"==p;if(Xa(t))return function(e,t){if(t)return e.slice();var r=e.length,n=xs?xs(r):new e.constructor(r);return e.copy(n),n}(t,c);if(p==lc||p==cc||f&&!i){if(s=u||f?{}:function(e){return"function"!=typeof e.constructor||ds(e)?{}:nc(Zi(e))}(t),!c)return u?function(e,t){return Ua(e,Ts(e),t)}(t,function(e,t){return e&&Ua(t,bs(t),e)}(s,t)):function(e,t){return Ua(e,ks(e),t)}(t,function(e,t){return e&&Ua(t,gs(t),e)}(s,t))}else{if(!dc[p])return i?t:{};s=tc(t,p,c)}}a||(a=new Ra);var h=a.get(t);if(h)return h;a.set(t,s),sc(t)?t.forEach(function(o){s.add(e(o,r,n,o,t,a))}):ic(t)&&t.forEach(function(o,i){s.set(i,e(o,r,n,i,t,a))});var g=d?void 0:(l?u?Ps:Is:u?bs:gs)(t);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(g||t,function(o,i){g&&(o=t[i=o]),Ba(s,i,e(o,r,n,i,t,a))}),s},fc=function(e){return pc(e,5)};var hc=l(115),gc=l.n(hc);const mc=function(e){return pc(e,4)},yc=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},bc=function(e){return"symbol"==typeof e||Ji(e)&&"[object Symbol]"==Yi(e)};function vc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(vc.Cache||La),r}vc.Cache=La;var wc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sc=/\\(\\)?/g;const xc=(Ec=vc(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(wc,function(e,r,n,o){t.push(n?o.replace(Sc,"$1"):r||e)}),t},function(e){return 500===_c.size&&_c.clear(),e}),_c=Ec.cache,Ec);var Ec,_c;const Oc=function(e){if("string"==typeof e||bc(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Cc=Hi?Hi.prototype:void 0,kc=Cc?Cc.toString:void 0;const Ac=function e(t){if("string"==typeof t)return t;if(Ga(t))return yc(t,e)+"";if(bc(t))return kc?kc.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Tc=function(e){return null==e?"":Ac(e)},Dc=function(e){return Ga(e)?yc(e,Oc):bc(e)?[e]:Es(xc(Tc(e)))};var Ic=l(4146),Pc=l.n(Ic);function Lc(){return Lc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lc.apply(this,arguments)}function Mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Rc(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function jc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Nc=(0,Vo.createContext)(void 0);Nc.displayName="FormikContext";var Fc=Nc.Provider;Nc.Consumer;var Bc=function(e){return Array.isArray(e)&&0===e.length},Uc=function(e){return"function"==typeof e},Kc=function(e){return null!==e&&"object"==typeof e},Hc=function(e){return String(Math.floor(Number(e)))===e},zc=function(e){return"[object String]"===Object.prototype.toString.call(e)},Vc=function(e){return 0===Vo.Children.count(e)},qc=function(e){return Kc(e)&&Uc(e.then)};function Gc(e,t,r,n){void 0===n&&(n=0);for(var o=Dc(t);e&&n<o.length;)e=e[o[n++]];return n===o.length||e?void 0===e?r:e:r}function Wc(e,t,r){for(var n=mc(e),o=n,i=0,a=Dc(t);i<a.length-1;i++){var s=a[i],c=Gc(e,a.slice(0,i+1));if(c&&(Kc(c)||Array.isArray(c)))o=o[s]=mc(c);else{var u=a[i+1];o=o[s]=Hc(u)&&Number(u)>=0?[]:{}}}return(0===i?e:o)[a[i]]===r?e:(void 0===r?delete o[a[i]]:o[a[i]]=r,0===i&&void 0===r&&delete n[a[i]],n)}function $c(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];Kc(s)?r.get(s)||(r.set(s,!0),n[a]=Array.isArray(s)?[]:{},$c(s,t,r,n[a])):n[a]=t}return n}var Yc={},Xc={};function Zc(e){var t=e.validateOnChange,r=void 0===t||t,n=e.validateOnBlur,o=void 0===n||n,i=e.validateOnMount,a=void 0!==i&&i,s=e.isInitialValid,c=e.enableReinitialize,u=void 0!==c&&c,l=e.onSubmit,d=Rc(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Lc({validateOnChange:r,validateOnBlur:o,validateOnMount:a,onSubmit:l},d),f=(0,Vo.useRef)(p.initialValues),h=(0,Vo.useRef)(p.initialErrors||Yc),g=(0,Vo.useRef)(p.initialTouched||Xc),m=(0,Vo.useRef)(p.initialStatus),y=(0,Vo.useRef)(!1),b=(0,Vo.useRef)({});(0,Vo.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]);var v=(0,Vo.useState)(0)[1],w=(0,Vo.useRef)({values:fc(p.initialValues),errors:fc(p.initialErrors)||Yc,touched:fc(p.initialTouched)||Xc,status:fc(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=w.current,x=(0,Vo.useCallback)(function(e){var t=w.current;w.current=function(e,t){switch(t.type){case"SET_VALUES":return Lc({},e,{values:t.payload});case"SET_TOUCHED":return Lc({},e,{touched:t.payload});case"SET_ERRORS":return gc()(e.errors,t.payload)?e:Lc({},e,{errors:t.payload});case"SET_STATUS":return Lc({},e,{status:t.payload});case"SET_ISSUBMITTING":return Lc({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Lc({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Lc({},e,{values:Wc(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Lc({},e,{touched:Wc(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Lc({},e,{errors:Wc(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Lc({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Lc({},e,{touched:$c(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Lc({},e,{isSubmitting:!1});default:return e}}(t,e),t!==w.current&&v(function(e){return e+1})},[]),E=(0,Vo.useCallback)(function(e,t){return new Promise(function(r,n){var o=p.validate(e,t);null==o?r(Yc):qc(o)?o.then(function(e){r(e||Yc)},function(e){n(e)}):r(o)})},[p.validate]),_=(0,Vo.useCallback)(function(e,t){var r=p.validationSchema,n=Uc(r)?r(t):r,o=t&&n.validateAt?n.validateAt(t,e):function(e,t,r){void 0===r&&(r=!1);var n=Qc(e);return t[r?"validateSync":"validate"](n,{abortEarly:!1,context:n})}(e,n);return new Promise(function(e,t){o.then(function(){e(Yc)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Wc(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;Gc(t,a.path)||(t=Wc(t,a.path,a.message))}}return t}(r)):t(r)})})},[p.validationSchema]),O=(0,Vo.useCallback)(function(e,t){return new Promise(function(r){return r(b.current[e].validate(t))})},[]),C=(0,Vo.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return Uc(b.current[e].validate)}),r=t.length>0?t.map(function(t){return O(t,Gc(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Wc(e,t[n],r)),e},{})})},[O]),k=(0,Vo.useCallback)(function(e){return Promise.all([C(e),p.validationSchema?_(e):{},p.validate?E(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return Fi.all([t,r,n],{arrayMerge:eu})})},[p.validate,p.validationSchema,C,E,_]),A=ru(function(e){return void 0===e&&(e=S.values),x({type:"SET_ISVALIDATING",payload:!0}),k(e).then(function(e){return y.current&&(x({type:"SET_ISVALIDATING",payload:!1}),x({type:"SET_ERRORS",payload:e})),e})});(0,Vo.useEffect)(function(){a&&!0===y.current&&gc()(f.current,p.initialValues)&&A(f.current)},[a,A]);var T=(0,Vo.useCallback)(function(e){var t=e&&e.values?e.values:f.current,r=e&&e.errors?e.errors:h.current?h.current:p.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:p.initialTouched||{},o=e&&e.status?e.status:m.current?m.current:p.initialStatus;f.current=t,h.current=r,g.current=n,m.current=o;var i=function(){x({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(p.onReset){var a=p.onReset(S.values,$);qc(a)?a.then(i):i()}else i()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);(0,Vo.useEffect)(function(){!0!==y.current||gc()(f.current,p.initialValues)||u&&(f.current=p.initialValues,T(),a&&A(f.current))},[u,p.initialValues,T,a,A]),(0,Vo.useEffect)(function(){u&&!0===y.current&&!gc()(h.current,p.initialErrors)&&(h.current=p.initialErrors||Yc,x({type:"SET_ERRORS",payload:p.initialErrors||Yc}))},[u,p.initialErrors]),(0,Vo.useEffect)(function(){u&&!0===y.current&&!gc()(g.current,p.initialTouched)&&(g.current=p.initialTouched||Xc,x({type:"SET_TOUCHED",payload:p.initialTouched||Xc}))},[u,p.initialTouched]),(0,Vo.useEffect)(function(){u&&!0===y.current&&!gc()(m.current,p.initialStatus)&&(m.current=p.initialStatus,x({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var D=ru(function(e){if(b.current[e]&&Uc(b.current[e].validate)){var t=Gc(S.values,e),r=b.current[e].validate(t);return qc(r)?(x({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){x({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),x({type:"SET_ISVALIDATING",payload:!1})})):(x({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return p.validationSchema?(x({type:"SET_ISVALIDATING",payload:!0}),_(S.values,e).then(function(e){return e}).then(function(t){x({type:"SET_FIELD_ERROR",payload:{field:e,value:Gc(t,e)}}),x({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),I=(0,Vo.useCallback)(function(e,t){var r=t.validate;b.current[e]={validate:r}},[]),P=(0,Vo.useCallback)(function(e){delete b.current[e]},[]),L=ru(function(e,t){return x({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?A(S.values):Promise.resolve()}),M=(0,Vo.useCallback)(function(e){x({type:"SET_ERRORS",payload:e})},[]),R=ru(function(e,t){var n=Uc(e)?e(S.values):e;return x({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?A(n):Promise.resolve()}),j=(0,Vo.useCallback)(function(e,t){x({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),N=ru(function(e,t,n){var o=Uc(t)?t(Gc(S.values,e)):t;return x({type:"SET_FIELD_VALUE",payload:{field:e,value:o}}),(void 0===n?r:n)?A(Wc(S.values,e,o)):Promise.resolve()}),F=(0,Vo.useCallback)(function(e,t){var r,n=t,o=e;if(!zc(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,c=i.id,u=i.value,l=i.checked,d=(i.outerHTML,i.options),p=i.multiple;n=t||s||c,o=/number|range/.test(a)?(r=parseFloat(u),isNaN(r)?"":r):/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],o=!1,i=-1;if(Array.isArray(e))n=e,o=(i=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!o?n.concat(r):o?n.slice(0,i).concat(n.slice(i+1)):n}(Gc(S.values,n),l,u):d&&p?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):u}n&&N(n,o)},[N,S.values]),B=ru(function(e){if(zc(e))return function(t){return F(t,e)};F(e)}),U=ru(function(e,t,r){return void 0===t&&(t=!0),x({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?o:r)?A(S.values):Promise.resolve()}),K=(0,Vo.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=r.id,i=(r.outerHTML,t||n||o);U(i,!0)},[U]),H=ru(function(e){if(zc(e))return function(t){return K(t,e)};K(e)}),z=(0,Vo.useCallback)(function(e){Uc(e)?x({type:"SET_FORMIK_STATE",payload:e}):x({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),V=(0,Vo.useCallback)(function(e){x({type:"SET_STATUS",payload:e})},[]),q=(0,Vo.useCallback)(function(e){x({type:"SET_ISSUBMITTING",payload:e})},[]),G=ru(function(){return x({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=Y()))return}catch(e){throw e}return Promise.resolve(r).then(function(e){return y.current&&x({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(y.current)throw x({type:"SUBMIT_FAILURE"}),e})}if(y.current&&(x({type:"SUBMIT_FAILURE"}),t))throw e})}),W=ru(function(e){e&&e.preventDefault&&Uc(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Uc(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),$={resetForm:T,validateForm:A,validateField:D,setErrors:M,setFieldError:j,setFieldTouched:U,setFieldValue:N,setStatus:V,setSubmitting:q,setTouched:L,setValues:R,setFormikState:z,submitForm:G},Y=ru(function(){return l(S.values,$)}),X=ru(function(e){e&&e.preventDefault&&Uc(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Uc(e.stopPropagation)&&e.stopPropagation(),T()}),Z=(0,Vo.useCallback)(function(e){return{value:Gc(S.values,e),error:Gc(S.errors,e),touched:!!Gc(S.touched,e),initialValue:Gc(f.current,e),initialTouched:!!Gc(g.current,e),initialError:Gc(h.current,e)}},[S.errors,S.touched,S.values]),J=(0,Vo.useCallback)(function(e){return{setValue:function(t,r){return N(e,t,r)},setTouched:function(t,r){return U(e,t,r)},setError:function(t){return j(e,t)}}},[N,U,j]),Q=(0,Vo.useCallback)(function(e){var t=Kc(e),r=t?e.name:e,n=Gc(S.values,r),o={name:r,value:n,onChange:B,onBlur:H};if(t){var i=e.type,a=e.value,s=e.as,c=e.multiple;"checkbox"===i?void 0===a?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(a)),o.value=a):"radio"===i?(o.checked=n===a,o.value=a):"select"===s&&c&&(o.value=o.value||[],o.multiple=!0)}return o},[H,B,S.values]),ee=(0,Vo.useMemo)(function(){return!gc()(f.current,S.values)},[f.current,S.values]),te=(0,Vo.useMemo)(function(){return void 0!==s?ee?S.errors&&0===Object.keys(S.errors).length:!1!==s&&Uc(s)?s(p):s:S.errors&&0===Object.keys(S.errors).length},[s,ee,S.errors,p]);return Lc({},S,{initialValues:f.current,initialErrors:h.current,initialTouched:g.current,initialStatus:m.current,handleBlur:H,handleChange:B,handleReset:X,handleSubmit:W,resetForm:T,setErrors:M,setFormikState:z,setFieldTouched:U,setFieldValue:N,setFieldError:j,setStatus:V,setSubmitting:q,setTouched:L,setValues:R,submitForm:G,validateForm:A,validateField:D,isValid:te,dirty:ee,unregisterField:P,registerField:I,getFieldProps:Q,getFieldMeta:Z,getFieldHelpers:J,validateOnBlur:o,validateOnChange:r,validateOnMount:a})}function Jc(e){var t=Zc(e),r=e.component,n=e.children,o=e.render,i=e.innerRef;return(0,Vo.useImperativeHandle)(i,function(){return t}),(0,Vo.createElement)(Fc,{value:t},r?(0,Vo.createElement)(r,t):o?o(t):n?Uc(n)?n(t):Vc(n)?null:Vo.Children.only(n):null)}function Qc(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map(function(e){return!0===Array.isArray(e)||oa(e)?Qc(e):""!==e?e:void 0}):oa(e[n])?t[n]=Qc(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function eu(e,t,r){var n=e.slice();return t.forEach(function(t,o){if(void 0===n[o]){var i=!1!==r.clone&&r.isMergeableObject(t);n[o]=i?Fi(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=Fi(e[o],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var tu="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Vo.useLayoutEffect:Vo.useEffect;function ru(e){var t=(0,Vo.useRef)(e);return tu(function(){t.current=e}),(0,Vo.useCallback)(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}var nu=(0,Vo.forwardRef)(function(e,t){var r=e.action,n=Rc(e,["action"]),o=null!=r?r:"#",i=(0,Vo.useContext)(Nc),a=i.handleReset,s=i.handleSubmit;return(0,Vo.createElement)("form",Lc({onSubmit:s,ref:t,onReset:a,action:o},n))});nu.displayName="Form";var ou=function(e,t,r){var n=iu(e);return n.splice(t,0,r),n},iu=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(Lc({},e,{length:t+1}))}return[]},au=function(e,t){var r="function"==typeof e?e:t;return function(e){if(Array.isArray(e)||Kc(e)){var t=iu(e);return r(t)}return e}},su=function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var o=r.props,i=o.name;(0,o.formik.setFormikState)(function(r){var o=au(n,e),a=au(t,e),s=Wc(r.values,i,e(Gc(r.values,i))),c=n?o(Gc(r.errors,i)):void 0,u=t?a(Gc(r.touched,i)):void 0;return Bc(c)&&(c=void 0),Bc(u)&&(u=void 0),Lc({},r,{values:s,errors:n?Wc(r.errors,i,c):r.errors,touched:t?Wc(r.touched,i,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(iu(t),[fc(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=iu(e),o=n[t];return n[t]=n[r],n[r]=o,n}(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=iu(e),o=n[t];return n.splice(t,1),n.splice(r,0,o),n}(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return ou(r,e,t)},function(t){return ou(t,e,null)},function(t){return ou(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return function(e,t,r){var n=iu(e);return n[t]=r,n}(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t=n.length,n},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(jc(r)),r.pop=r.pop.bind(jc(r)),r}Mc(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!gc()(Gc(e.formik.values,e.name),Gc(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?iu(r):[];return t||(t=n[e]),Uc(n.splice)&&n.splice(e,1),Uc(n.every)&&n.every(function(e){return void 0===e})?[]:n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,o=t.children,i=t.name,a=Lc({},e,{form:Rc(t.formik,["validate","validationSchema"]),name:i});return r?(0,Vo.createElement)(r,a):n?n(a):o?"function"==typeof o?o(a):Vc(o)?null:Vo.Children.only(o):null},t}(Vo.Component);su.defaultProps={validateOnChange:!0};const cu=(0,ei.defineMessages)({ariaLabelComment:{id:"ba.popup.reply.comment",description:"Aria label description for reply popup",defaultMessage:"Comment"},ariaLabelMentionLoading:{id:"ba.popup.reply.mentionLoading",description:"Aria label for mention selector loading state",defaultMessage:"Loading users..."},ariaLabelMentionSelector:{id:"ba.popup.reply.mentionSelector",description:"Aria role description for mention user selector",defaultMessage:"Mention a collaborator"},ariaLabelReplyField:{id:"ba.popup.reply.field",description:"Aria label description for annotation comment field",defaultMessage:"Type a comment"},buttonCancel:{id:"ba.popups.cancel",description:"Button label for cancelling the creation of a description, comment, or reply",defaultMessage:"Cancel"},buttonPost:{id:"ba.popups.post",description:"Button label for creating a description, comment, or reply",defaultMessage:"Post"},drawingButtonAddComment:{id:"ba.popups.drawing.addComment",description:"Button label for adding a comment in the drawing toolbar",defaultMessage:"Add Comment"},drawingButtonDelete:{id:"ba.popups.drawing.delete",description:"Button title for deleting a staged drawing",defaultMessage:"Delete"},drawingButtonRedo:{id:"ba.popups.drawing.redo",description:"Button title for redoing a staged drawing",defaultMessage:"Redo"},drawingButtonUndo:{id:"ba.popups.drawing.undo",description:"Button title for undoing a staged drawing",defaultMessage:"Undo"},fieldPlaceholder:{id:"ba.popups.replyField.placeholder",description:"Placeholder for reply field editor",defaultMessage:"Type a comment..."},popupHighlightPromoter:{id:"ba.popups.popupHighlight.promoter",description:"Popup message for highlight promoter",defaultMessage:"Highlight and Comment"},popupHighlightRestrictedPrompt:{id:"ba.popups.popupHighlight.restrictedPrompt",description:"Prompt message when selection crosses multiple pages",defaultMessage:"Comments restricted to single page"},popupListPrompt:{id:"ba.popups.popupList.prompt",description:"Prompt message for empty popup list",defaultMessage:"Mention someone to notify them"},regionCursorPrompt:{id:"ba.popups.popupCursor.regionPrompt",description:"Prompt message following cursor in region annotations mode",defaultMessage:"Draw a box to comment"}}),uu=["children","isDisabled","isPrimary","onClick"];function lu(e){let{children:t,isDisabled:r,isPrimary:n,onClick:o=Lr()}=e,i=pt(e,uu);return qo().createElement("button",m({"aria-disabled":!!r||void 0,className:yi()("btn",{"btn-primary":n,"is-disabled":r}),onClick:e=>{if(r)return e.preventDefault(),void e.stopPropagation();o(e)},type:"button"},i),t)}const du=e=>e.users.collaborators;var pu=l(8221),fu=l.n(pu),hu=l(2193),gu=l.n(hu);function mu(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function yu(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function bu(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return yu(r.overflowY,t)||yu(r.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function vu(e,t,r,n,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=r||a>=t&&s>=r?i-e-n:a>t&&s<r||i<e&&s>r?a-t+o:0}const wu=function(e,t){var r=t.scrollMode,n=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!mu(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],l=e;mu(l)&&s(l);){if((l=l.parentNode)===c){u.push(l);break}l===document.body&&bu(l)&&!bu(document.documentElement)||bu(l,a)&&u.push(l)}for(var d=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),m=g.height,y=g.width,b=g.top,v=g.right,w=g.bottom,S=g.left,x="start"===n||"nearest"===n?b:"end"===n?w:b+m/2,E="center"===o?S+y/2:"end"===o?v:S,_=[],O=0;O<u.length;O++){var C=u[O],k=C.getBoundingClientRect(),A=k.height,T=k.width,D=k.top,I=k.right,P=k.bottom,L=k.left;if("if-needed"===r&&b>=0&&S>=0&&w<=p&&v<=d&&b>=D&&w<=P&&S>=L&&v<=I)return _;var M=getComputedStyle(C),R=parseInt(M.borderLeftWidth,10),j=parseInt(M.borderTopWidth,10),N=parseInt(M.borderRightWidth,10),F=parseInt(M.borderBottomWidth,10),B=0,U=0,K="offsetWidth"in C?C.offsetWidth-C.clientWidth-R-N:0,H="offsetHeight"in C?C.offsetHeight-C.clientHeight-j-F:0;if(c===C)B="start"===n?x:"end"===n?x-p:"nearest"===n?vu(h,h+p,p,j,F,h+x,h+x+m,m):x-p/2,U="start"===o?E:"center"===o?E-d/2:"end"===o?E-d:vu(f,f+d,d,R,N,f+E,f+E+y,y),B=Math.max(0,B+h),U=Math.max(0,U+f);else{B="start"===n?x-D-j:"end"===n?x-P+F+H:"nearest"===n?vu(D,P,A,j,F+H,x,x+m,m):x-(D+A/2)+H/2,U="start"===o?E-L-R:"center"===o?E-(L+T/2)+K/2:"end"===o?E-I+N+K:vu(L,I,T,R,N+K,E,E+y,y);var z=C.scrollLeft,V=C.scrollTop;x+=V-(B=Math.max(0,Math.min(V+B,C.scrollHeight-A+H))),E+=z-(U=Math.max(0,Math.min(z+U,C.scrollWidth-T+K)))}_.push({el:C,top:B,left:U})}return _};function Su(e){return e===Object(e)&&0!==Object.keys(e).length}(Object.getOwnPropertyDescriptor(wu,"name")||{}).writable||Object.defineProperty(wu,"name",{value:"default",configurable:!0});const xu=(e,t)=>{const{className:r,isActive:n,item:o,onClick:i,onMouseDown:a,onMouseEnter:s}=e;if(!o||!o.item||!o.item.name)return null;const{item:c}=o;return Vo.createElement("li",{ref:t,"aria-selected":n,className:yi()(r,"ba-ItemRow",{"is-active":n}),"data-resin-target":"atMention","data-testid":"ba-ItemRow",onClick:i,onMouseDown:a,onMouseEnter:s,role:"option"},Vo.createElement("div",{className:"ba-ItemRow-name","data-testid":"ba-ItemRow-name"},c.name),"user"===c.type&&c.email&&Vo.createElement("div",{className:"ba-ItemRow-email","data-testid":"ba-ItemRow-email"},c.email))},Eu=Vo.forwardRef(xu),_u=["activeItemIndex","autoScroll","itemRowAs","items","onActivate","onSelect"],Ou=e=>{let{activeItemIndex:t=0,autoScroll:r=!1,itemRowAs:n=Eu,items:o,onActivate:i=Lr(),onSelect:a}=e,s=pt(e,_u);const c=qo().useCallback(e=>{r&&e&&function(e,t){var r=!e.ownerDocument.documentElement.contains(e);if(Su(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:wu(e,t));if(!r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:Su(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(e){var n=e.el,o=e.top,i=e.left;n.scroll&&r?n.scroll({top:o,left:i,behavior:t}):(n.scrollTop=o,n.scrollLeft=i)})})(wu(e,n),n.behavior)}}(e,{scrollMode:"if-needed",block:"nearest"})},[r]);return qo().createElement("ul",m({className:"ba-ItemList","data-testid":"ba-ItemList",role:"listbox"},s),o.map((e,r)=>qo().createElement(n,{key:e.id,ref:r===t?c:null,className:"ba-ItemList-row",isActive:r===t,item:e,onClick:e=>{a(r,e)},onMouseDown:e=>{e.preventDefault()},onMouseEnter:()=>{i(r)}})))};function Cu(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ku(e){return e instanceof Cu(e).Element||e instanceof Element}function Au(e){return e instanceof Cu(e).HTMLElement||e instanceof HTMLElement}function Tu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cu(e).ShadowRoot||e instanceof ShadowRoot)}var Du=Math.max,Iu=Math.min,Pu=Math.round;function Lu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Mu(){return!/^((?!chrome|android).)*safari/i.test(Lu())}function Ru(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Au(e)&&(o=e.offsetWidth>0&&Pu(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Pu(n.height)/e.offsetHeight||1);var a=(ku(e)?Cu(e):window).visualViewport,s=!Mu()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,l=n.width/o,d=n.height/i;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function ju(e){var t=Cu(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Nu(e){return e?(e.nodeName||"").toLowerCase():null}function Fu(e){return((ku(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bu(e){return Ru(Fu(e)).left+ju(e).scrollLeft}function Uu(e){return Cu(e).getComputedStyle(e)}function Ku(e){var t=Uu(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Hu(e,t,r){void 0===r&&(r=!1);var n,o,i=Au(t),a=Au(t)&&function(e){var t=e.getBoundingClientRect(),r=Pu(t.width)/e.offsetWidth||1,n=Pu(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=Fu(t),c=Ru(e,a,r),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!r)&&(("body"!==Nu(t)||Ku(s))&&(u=(n=t)!==Cu(n)&&Au(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:ju(n)),Au(t)?((l=Ru(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Bu(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function zu(e){var t=Ru(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Vu(e){return"html"===Nu(e)?e:e.assignedSlot||e.parentNode||(Tu(e)?e.host:null)||Fu(e)}function qu(e){return["html","body","#document"].indexOf(Nu(e))>=0?e.ownerDocument.body:Au(e)&&Ku(e)?e:qu(Vu(e))}function Gu(e,t){var r;void 0===t&&(t=[]);var n=qu(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Cu(n),a=o?[i].concat(i.visualViewport||[],Ku(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Gu(Vu(a)))}function Wu(e){return["table","td","th"].indexOf(Nu(e))>=0}function $u(e){return Au(e)&&"fixed"!==Uu(e).position?e.offsetParent:null}function Yu(e){for(var t=Cu(e),r=$u(e);r&&Wu(r)&&"static"===Uu(r).position;)r=$u(r);return r&&("html"===Nu(r)||"body"===Nu(r)&&"static"===Uu(r).position)?t:r||function(e){var t=/firefox/i.test(Lu());if(/Trident/i.test(Lu())&&Au(e)&&"fixed"===Uu(e).position)return null;var r=Vu(e);for(Tu(r)&&(r=r.host);Au(r)&&["html","body"].indexOf(Nu(r))<0;){var n=Uu(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Xu="top",Zu="bottom",Ju="right",Qu="left",el="auto",tl=[Xu,Zu,Ju,Qu],rl="start",nl="end",ol="viewport",il="popper",al=tl.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+nl])},[]),sl=[].concat(tl,[el]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+nl])},[]),cl=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ul(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var ll={placement:"bottom",modifiers:[],strategy:"absolute"};function dl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function pl(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?ll:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ll,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:ku(e)?Gu(e):e.contextElement?Gu(e.contextElement):[],popper:Gu(t)};var a,u,p=function(e){var t=ul(e);return cl.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),u=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:n});c.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(dl(t,r)){s.rects={reference:Hu(t,Yu(r),"fixed"===s.options.strategy),popper:zu(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){l.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),u=!0}};if(!dl(e,t))return l;function d(){c.forEach(function(e){return e()}),c=[]}return l.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),l}}var fl={passive:!0};const hl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,c=Cu(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",r.update,fl)}),s&&c.addEventListener("resize",r.update,fl),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",r.update,fl)}),s&&c.removeEventListener("resize",r.update,fl)}},data:{}};function gl(e){return e.split("-")[0]}function ml(e){return e.split("-")[1]}function yl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bl(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?gl(o):null,a=o?ml(o):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case Xu:t={x:s,y:r.y-n.height};break;case Zu:t={x:s,y:r.y+r.height};break;case Ju:t={x:r.x+r.width,y:c};break;case Qu:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=i?yl(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case rl:t[u]=t[u]-(r[l]/2-n[l]/2);break;case nl:t[u]=t[u]+(r[l]/2-n[l]/2)}}return t}var vl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wl(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,g=void 0===h?0:h,m="function"==typeof l?l({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=Qu,w=Xu,S=window;if(u){var x=Yu(r),E="clientHeight",_="clientWidth";x===Cu(r)&&"static"!==Uu(x=Fu(r)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(o===Xu||(o===Qu||o===Ju)&&i===nl)&&(w=Zu,g-=(d&&x===S&&S.visualViewport?S.visualViewport.height:x[E])-n.height,g*=c?1:-1),o!==Qu&&(o!==Xu&&o!==Zu||i!==nl)||(v=Ju,f-=(d&&x===S&&S.visualViewport?S.visualViewport.width:x[_])-n.width,f*=c?1:-1)}var O,C=Object.assign({position:s},u&&vl),k=!0===l?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Pu(r*o)/o||0,y:Pu(n*o)/o||0}}({x:f,y:g},Cu(r)):{x:f,y:g};return f=k.x,g=k.y,c?Object.assign({},C,((O={})[w]=b?"0":"",O[v]=y?"0":"",O.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",O)):Object.assign({},C,((t={})[w]=b?g+"px":"",t[v]=y?f+"px":"",t.transform="",t))}const Sl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,c=void 0===s||s,u={placement:gl(t.placement),variation:ml(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,wl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,wl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},xl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=sl.reduce(function(e,r){return e[r]=function(e,t,r){var n=gl(e),o=[Qu,Xu].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Qu,Ju].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var El={left:"right",right:"left",bottom:"top",top:"bottom"};function _l(e){return e.replace(/left|right|bottom|top/g,function(e){return El[e]})}var Ol={start:"end",end:"start"};function Cl(e){return e.replace(/start|end/g,function(e){return Ol[e]})}function kl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Tu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Al(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tl(e,t,r){return t===ol?Al(function(e,t){var r=Cu(e),n=Fu(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=Mu();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+Bu(e),y:c}}(e,r)):ku(t)?function(e,t){var r=Ru(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Al(function(e){var t,r=Fu(e),n=ju(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Du(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Du(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Bu(e),c=-n.scrollTop;return"rtl"===Uu(o||r).direction&&(s+=Du(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(Fu(e)))}function Dl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Il(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function Pl(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,c=void 0===s?"clippingParents":s,u=r.rootBoundary,l=void 0===u?ol:u,d=r.elementContext,p=void 0===d?il:d,f=r.altBoundary,h=void 0!==f&&f,g=r.padding,m=void 0===g?0:g,y=Dl("number"!=typeof m?m:Il(m,tl)),b=p===il?"reference":il,v=e.rects.popper,w=e.elements[h?b:p],S=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Gu(Vu(e)),r=["absolute","fixed"].indexOf(Uu(e).position)>=0&&Au(e)?Yu(e):e;return ku(r)?t.filter(function(e){return ku(e)&&kl(e,r)&&"body"!==Nu(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=Tl(e,r,n);return t.top=Du(o.top,t.top),t.right=Iu(o.right,t.right),t.bottom=Iu(o.bottom,t.bottom),t.left=Du(o.left,t.left),t},Tl(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(ku(w)?w:w.contextElement||Fu(e.elements.popper),c,l,a),x=Ru(e.elements.reference),E=bl({reference:x,element:v,strategy:"absolute",placement:o}),_=Al(Object.assign({},v,E)),O=p===il?_:x,C={top:S.top-O.top+y.top,bottom:O.bottom-S.bottom+y.bottom,left:S.left-O.left+y.left,right:O.right-S.right+y.right},k=e.modifiersData.offset;if(p===il&&k){var A=k[o];Object.keys(C).forEach(function(e){var t=[Ju,Zu].indexOf(e)>=0?1:-1,r=[Xu,Zu].indexOf(e)>=0?"y":"x";C[e]+=A[r]*t})}return C}const Ll={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,u=r.padding,l=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,h=void 0===f||f,g=r.allowedAutoPlacements,m=t.options.placement,y=gl(m),b=c||(y!==m&&h?function(e){if(gl(e)===el)return[];var t=_l(e);return[Cl(e),t,Cl(t)]}(m):[_l(m)]),v=[m].concat(b).reduce(function(e,r){return e.concat(gl(r)===el?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?sl:c,l=ml(n),d=l?s?al:al.filter(function(e){return ml(e)===l}):tl,p=d.filter(function(e){return u.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,r){return t[r]=Pl(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[gl(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):r)},[]),w=t.rects.reference,S=t.rects.popper,x=new Map,E=!0,_=v[0],O=0;O<v.length;O++){var C=v[O],k=gl(C),A=ml(C)===rl,T=[Xu,Zu].indexOf(k)>=0,D=T?"width":"height",I=Pl(t,{placement:C,boundary:l,rootBoundary:d,altBoundary:p,padding:u}),P=T?A?Ju:Qu:A?Zu:Xu;w[D]>S[D]&&(P=_l(P));var L=_l(P),M=[];if(i&&M.push(I[k]<=0),s&&M.push(I[P]<=0,I[L]<=0),M.every(function(e){return e})){_=C,E=!1;break}x.set(C,M)}if(E)for(var R=function(e){var t=v.find(function(t){var r=x.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return _=t,"break"},j=h?3:1;j>0&&"break"!==R(j);j--);t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ml(e,t,r){return Du(e,Iu(t,r))}const Rl={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,u=r.rootBoundary,l=r.altBoundary,d=r.padding,p=r.tether,f=void 0===p||p,h=r.tetherOffset,g=void 0===h?0:h,m=Pl(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),y=gl(t.placement),b=ml(t.placement),v=!b,w=yl(y),S="x"===w?"y":"x",x=t.modifiersData.popperOffsets,E=t.rects.reference,_=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(i){var T,D="y"===w?Xu:Qu,I="y"===w?Zu:Ju,P="y"===w?"height":"width",L=x[w],M=L+m[D],R=L-m[I],j=f?-_[P]/2:0,N=b===rl?E[P]:_[P],F=b===rl?-_[P]:-E[P],B=t.elements.arrow,U=f&&B?zu(B):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=K[D],z=K[I],V=Ml(0,E[P],U[P]),q=v?E[P]/2-j-V-H-C.mainAxis:N-V-H-C.mainAxis,G=v?-E[P]/2+j+V+z+C.mainAxis:F+V+z+C.mainAxis,W=t.elements.arrow&&Yu(t.elements.arrow),$=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(T=null==k?void 0:k[w])?T:0,X=L+G-Y,Z=Ml(f?Iu(M,L+q-Y-$):M,L,f?Du(R,X):R);x[w]=Z,A[w]=Z-L}if(s){var J,Q="x"===w?Xu:Qu,ee="x"===w?Zu:Ju,te=x[S],re="y"===S?"height":"width",ne=te+m[Q],oe=te-m[ee],ie=-1!==[Xu,Qu].indexOf(y),ae=null!=(J=null==k?void 0:k[S])?J:0,se=ie?ne:te-E[re]-_[re]-ae+C.altAxis,ce=ie?te+E[re]+_[re]-ae-C.altAxis:oe,ue=f&&ie?function(e,t,r){var n=Ml(e,t,r);return n>r?r:n}(se,te,ce):Ml(f?se:ne,te,f?ce:oe);x[S]=ue,A[S]=ue-te}t.modifiersData[n]=A}},requiresIfExists:["offset"]},jl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=gl(r.placement),c=yl(s),u=[Qu,Ju].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return Dl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Il(e,tl))}(o.padding,r),d=zu(i),p="y"===c?Xu:Qu,f="y"===c?Zu:Ju,h=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],g=a[c]-r.rects.reference[c],m=Yu(i),y=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,b=h/2-g/2,v=l[p],w=y-d[u]-l[f],S=y/2-d[u]/2+b,x=Ml(v,S,w),E=c;r.modifiersData[n]=((t={})[E]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&kl(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nl(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Fl(e){return[Xu,Ju,Zu,Qu].some(function(t){return e[t]>=0})}var Bl=pl({defaultModifiers:[hl,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=bl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Sl,{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Au(o)&&Nu(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});Au(n)&&Nu(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},xl,Ll,Rl,jl,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Pl(t,{elementContext:"reference"}),s=Pl(t,{altBoundary:!0}),c=Nl(a,n),u=Nl(s,o,i),l=Fl(c),d=Fl(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),Ul=l(6924),Kl=l.n(Ul),Hl=l(9786),zl=l.n(Hl);function Vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ql(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Gl={modifiers:[],placement:"bottom"},Wl=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return zl()(e,t,"name")};function $l(e,t,r={}){return Bl(e,t,Kl()({},Gl,r,Wl))}function Yl(e,t,r,n){const o={bottom:n+e,height:e,left:r,right:r+t,top:n,width:t,x:r,y:n};return ql(ql({},o),{},{toJSON:()=>ql({},o)})}const Xl=["children","className","options","reference"];class Zl extends qo().PureComponent{constructor(...e){super(...e),p(this,"popper",void 0),p(this,"popupRef",qo().createRef()),p(this,"createPopper",()=>{const{options:e,reference:t}=this.props,{current:r}=this.popupRef;if(r)return $l(t,r,e)}),p(this,"handleEvent",e=>{e.stopPropagation()})}componentDidMount(){this.popper=this.createPopper()}componentDidUpdate(e){const{options:t,reference:r}=e,{options:n,reference:o}=this.props;this.popper&&(n!==t&&this.popper.setOptions(n),o!==r&&(this.popper.destroy(),this.popper=this.createPopper()))}componentWillUnmount(){this.popper&&this.popper.destroy()}render(){const e=this.props,{children:t,className:r,options:n,reference:o}=e,i=pt(e,Xl);return qo().createElement("div",m({ref:this.popupRef,className:yi()("ba-Popup",r),onClick:this.handleEvent,onMouseDown:this.handleEvent,onMouseMove:this.handleEvent,onMouseUp:this.handleEvent,onTouchMove:this.handleEvent,onTouchStart:this.handleEvent,role:"presentation"},i),qo().createElement("div",{className:"ba-Popup-arrow"}),qo().createElement("div",{className:"ba-Popup-content"},t))}}p(Zl,"defaultProps",{options:{}});const Jl=["items","reference"],Ql={modifiers:[{name:"offset",options:{offset:[0,3]}},{name:"eventListeners",options:{scroll:!1}}],placement:"bottom-start"},ed=e=>{let{items:t,reference:r}=e,n=pt(e,Jl);return qo().createElement(Zl,{className:"ba-PopupList",options:Ql,reference:r},gu()(t)?qo().createElement("div",{className:"ba-PopupList-prompt"},qo().createElement(ei.FormattedMessage,cu.popupListPrompt)):qo().createElement(Ou,m({items:t},n)))},td=["className","collaborators","intl","editorState","isDisabled","placeholder"];class rd extends Vo.Component{constructor(...e){super(...e),p(this,"state",{activeItemIndex:0,popupAutoScroll:!1,popupReference:null}),p(this,"fetchCollaborators",fu()(e=>{const{fetchCollaborators:t}=this.props,r=Ai(e),n=r?.mentionString.trim();n&&t(n)},500)),p(this,"handleResize",fu()(()=>this.updatePopupReference(),100)),p(this,"getVirtualElement",e=>{const t=window.getSelection();if(!t?.focusNode)return null;const r=t.getRangeAt(0),n=r.endContainer,o=r.endOffset,{mentionString:i,mentionTrigger:a}=e,s=i.length+a.length,c=Math.max(0,o-s);r.setStart(n,c),r.setEnd(n,c);const u=r.getBoundingClientRect();return r.setStart(n,o),r.setEnd(n,o),{getBoundingClientRect:()=>u}}),p(this,"updatePopupReference",()=>{const{editorState:e}=this.props,t=Ai(e);this.setState({popupReference:t?this.getVirtualElement(t):null})}),p(this,"saveCursorPosition",()=>{const{editorState:e,setCursorPosition:t}=this.props;t(e.getSelection().getFocusOffset())}),p(this,"stopDefaultEvent",e=>{e.preventDefault(),e.stopPropagation()}),p(this,"setPopupListActiveItem",(e,t=!1)=>this.setState({activeItemIndex:e,popupAutoScroll:t})),p(this,"handleChange",e=>{const{onChange:t}=this.props;this.fetchCollaborators(e),t(e)}),p(this,"handleSelect",e=>{const{collaborators:t,editorState:r}=this.props,n=((e,t,r)=>{const{start:n,end:o}=t||{},{id:i,name:a}=r,s=e.getCurrentContent(),c=e.getSelection().merge({anchorOffset:n,focusOffset:o}),u=`@${a}`,l=s.createEntity("MENTION","IMMUTABLE",{id:i}).getLastCreatedEntityKey(),d=Ei.Modifier.replaceText(s,c,u,null,l),p=c.getStartOffset()+u.length,f=c.merge({anchorOffset:p,focusOffset:p}),h=Ei.Modifier.insertText(d,f," ");return Ei.EditorState.push(e,h,"change-block-type")})(r,Ai(r),t[e]);this.handleChange(n),this.setPopupListActiveItem(0)}),p(this,"handleReturn",e=>{const{activeItemIndex:t,popupReference:r}=this.state;return r?(this.stopDefaultEvent(e),this.handleSelect(t),"handled"):"not-handled"}),p(this,"handleArrow",e=>{const{collaborators:t}=this.props,{popupReference:r}=this.state,{length:n}=t;return r&&n?(this.stopDefaultEvent(e),n):0}),p(this,"handleUpArrow",e=>{const{activeItemIndex:t}=this.state,r=this.handleArrow(e);r&&this.setPopupListActiveItem(0===t?r-1:t-1,!0)}),p(this,"handleDownArrow",e=>{const{activeItemIndex:t}=this.state,r=this.handleArrow(e);r&&this.setPopupListActiveItem(t===r-1?0:t+1,!0)}),p(this,"handleMouseDown",e=>e.preventDefault())}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentDidUpdate({editorState:e}){const{editorState:t}=this.props;e!==t&&this.updatePopupReference()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize),this.saveCursorPosition()}render(){const e=this.props,{className:t,collaborators:r,intl:n,editorState:o,isDisabled:i,placeholder:a}=e,s=pt(e,td),{activeItemIndex:c,popupAutoScroll:u,popupReference:l}=this.state;return Vo.createElement("div",{className:yi()(t,"ba-ReplyField")},Vo.createElement(Ei.Editor,m({},s,{ariaLabel:n.formatMessage(cu.ariaLabelReplyField),ariaMultiline:!0,editorState:o,handleReturn:this.handleReturn,onChange:this.handleChange,onDownArrow:this.handleDownArrow,onUpArrow:this.handleUpArrow,placeholder:a,readOnly:i,stripPastedStyles:!0,tabIndex:0,webDriverTestID:"ba-ReplyField-editor"})),l&&Vo.createElement(ed,{activeItemIndex:c,autoScroll:u,items:r,onActivate:this.setPopupListActiveItem,onMouseDown:this.handleMouseDown,onSelect:this.handleSelect,reference:l}))}}p(rd,"defaultProps",{isDisabled:!1});const nd={fetchCollaborators:Dr,setCursorPosition:Xt},od=(0,Wo.connect)(e=>({collaborators:du(e),cursorPosition:dn(e)}),nd)(rd),id=({contentState:e,entityKey:t,children:r})=>{const{id:n}=e.getEntity(t).getData();return n?Vo.createElement("a",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-link",href:`/profile/${n}`},r):Vo.createElement("span",{className:"ba-MentionItem-link","data-testid":"ba-MentionItem-text"},r)},ad=(e,t,r)=>{e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&"MENTION"===r.getEntity(t).getType()},t)},sd=(0,Wo.connect)(e=>({cursorPosition:dn(e)}))((pd={handleSubmit:({editorState:e},{props:{onSubmit:t}})=>t(Ti(e).text),mapPropsToErrors:()=>({editorState:"initial"}),mapPropsToValues:({cursorPosition:e,value:t=""})=>{const r=function(e){const t=new Ei.CompositeDecorator([{strategy:ad,component:id}]);return Ei.EditorState.set(e,{decorator:t})}(((e="")=>{let t=Ei.ContentState.createFromText(e),r=t.getFirstBlock();for(;null!=r;){const e=r.getText(),n=e?Di(e):null,o=e?Ii(e):null;if(o)t=Pi(t,r,o),r=t.getBlockForKey(r.getKey());else if(n){const{data:e,start:o,end:i}=n;t.createEntity("MENTION","IMMUTABLE",e);const a=t.getLastCreatedEntityKey(),s=Ei.SelectionState.createEmpty(r.getKey()).merge({anchorOffset:o,focusOffset:i});t=Ei.Modifier.replaceText(t,s,e.content,null,a),r=t.getBlockForKey(r.getKey())}else o||n||(r=t.getBlockAfter(r.getKey()))}return Ei.EditorState.createWithContent(t,_i)})(t)),n=r.getSelection(),o=r.getCurrentContent().getBlockForKey(n.getAnchorKey()).getLength(),i=t?Math.min(e,o):0;return{editorState:Ei.EditorState.forceSelection(r,n.merge({anchorOffset:i,focusOffset:i,hasFocus:!0}))}},validate:({editorState:e})=>{const t={};if(e){const{text:r}=Ti(e);r&&0!==r.trim().length?r.length>1e4&&(t.editorState="maxlength"):t.editorState="required"}return t},validateOnMount:!0},hd=void 0===(fd=pd.mapPropsToValues)?function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&"function"!=typeof e[r]&&(t[r]=e[r]);return t}:fd,gd=Rc(pd,["mapPropsToValues"]),function(e){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",r=function(t){function r(){for(var r,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=t.call.apply(t,[this].concat(o))||this).validate=function(e){return gd.validate(e,r.props)},r.validationSchema=function(){return Uc(gd.validationSchema)?gd.validationSchema(r.props):gd.validationSchema},r.handleSubmit=function(e,t){return gd.handleSubmit(e,Lc({},t,{props:r.props}))},r.renderFormComponent=function(t){return(0,Vo.createElement)(e,Lc({},r.props,t))},r}return Mc(r,t),r.prototype.render=function(){var e=Rc(this.props,["children"]);return(0,Vo.createElement)(Jc,Lc({},e,gd,{validate:gd.validate&&this.validate,validationSchema:gd.validationSchema&&this.validationSchema,initialValues:hd(this.props),initialStatus:gd.mapPropsToStatus&&gd.mapPropsToStatus(this.props),initialErrors:gd.mapPropsToErrors&&gd.mapPropsToErrors(this.props),initialTouched:gd.mapPropsToTouched&&gd.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,children:this.renderFormComponent}))},r}(Vo.Component);return r.displayName="WithFormik("+t+")",Pc()(r,e)})(e=>{const{errors:t,isPending:r,onCancel:n,onChange:o,setFieldValue:i,values:a}=e,s=qo().useRef(null),c=(0,ei.useIntl)(),u=Object.keys(t).length>0,{editorState:l}=a,d=()=>{n(Ti(l).text)},p=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),d())};return qo().useEffect(()=>{const{current:e}=s;return e&&e.addEventListener("keydown",p),()=>{e&&e.removeEventListener("keydown",p)}},[s]),qo().createElement(nu,{ref:s,className:"ba-ReplyForm","data-testid":"ba-ReplyForm"},qo().createElement("div",{className:"ba-Popup-main"},qo().createElement(od,{className:"ba-Popup-field","data-testid":"ba-Popup-field",editorState:l,intl:c,isDisabled:r,onChange:e=>{o(Ti(e).text),i("editorState",e)},placeholder:c.formatMessage(cu.fieldPlaceholder)})),qo().createElement("div",{className:"ba-Popup-footer"},qo().createElement(lu,{"data-resin-target":"cancel","data-testid":"ba-Popup-cancel",isDisabled:r,onClick:d,type:"button"},qo().createElement(ei.FormattedMessage,cu.buttonCancel)),qo().createElement(lu,{"data-resin-target":"post","data-testid":"ba-Popup-submit",isDisabled:u||r,isPrimary:!0,type:"submit"},qo().createElement(ei.FormattedMessage,cu.buttonPost))))})),cd=sd,ud=["isPending","onCancel","onChange","onSubmit","value"],ld=()=>{const{userAgent:e}=navigator;return e.indexOf("Trident/")>0},dd={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow",padding:10}},{name:"flip",options:{altAxis:!1,fallbackPlacements:["bottom","top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}]};var pd,fd,hd,gd;function md(e){const t=(0,ei.useIntl)(),r=qo().useRef(null),n=qo().useRef((()=>{const{modifiers:e}=dd,t=ld()?"top":"bottom";return{modifiers:ld()?[...e,{name:"eventListeners",options:{scroll:!1}}]:e,placement:t}})()),o=(0,Wo.useSelector)(Ve),i=(0,Wo.useSelector)(qe);qo().useEffect(()=>{const{current:e}=r;e?.popper&&e.popper.update()},[r,o,i]);const{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l=""}=e,d=pt(e,ud);return qo().createElement(xi,null,qo().createElement(Zl,m({ref:r,"aria-label":t.formatMessage(cu.ariaLabelComment),"data-resin-component":"popupReply",options:n.current,role:"dialog"},d),qo().createElement(cd,{isPending:a,onCancel:s,onChange:c,onSubmit:u,value:l})))}function yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}const bd=/@\[(\d+):([^\]]+)\]/g,vd=(e,t=!1)=>t?i(e):(e=>{if(!e)return{type:"doc",content:[]};const t=e.split("\n").map(e=>{const t=(e=>{const t=[];let r=0;bd.lastIndex=0;let n=bd.exec(e);for(;null!==n;){const[o,i,a]=n,{index:s}=n;s>r&&t.push({type:"text",text:e.slice(r,s)}),t.push({type:"mention",attrs:{authorId:"",mentionId:i,mentionedUserId:i,mentionedUserName:a}}),r=s+o.length,n=bd.exec(e)}return r<e.length&&t.push({type:"text",text:e.slice(r)}),t})(e);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({type:"paragraph"},t.length>0?{content:t}:{})});return{type:"doc",content:t}})(e),wd=(e,t)=>{if(!t)return;const r=new Date(t).getTime();return Number.isNaN(r)?void 0:r!==new Date(e).getTime()?r:void 0},Sd=(e,t=!1)=>{const r=[];return e.description&&r.push(((e,t=!1)=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:vd(e.description?.message??"",t),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:e.permissions?.can_edit??!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1},updatedAt:wd(e.created_at,e.modified_at)}))(e,t)),e.replies&&e.replies.forEach(e=>{r.push(((e,t=!1)=>({author:{email:e.created_by?.login??"",id:parseInt(e.created_by?.id??"0",10),name:e.created_by?.name??""},createdAt:new Date(e.created_at).getTime(),id:e.id,message:vd(e.message,t),permissions:{canDelete:e.permissions?.can_delete??!1,canEdit:e.permissions?.can_edit??!1,canReply:e.permissions?.can_reply??!1,canResolve:e.permissions?.can_resolve??!1},updatedAt:wd(e.created_at,e.modified_at)}))(e,t))}),r},xd=e=>{const t=e.item;return{email:t?.email??t?.login??"",id:parseInt(t?.id??e.id,10),name:t?.name??e.name,value:e.id}},Ed=(0,Vo.createContext)({});function _d(e,t,r){Vo.useEffect(()=>{function n(e){const n=t instanceof Element?t:t?.current,o=!!n?.contains(e.target);r&&!o&&r(e)}return document.addEventListener(e,n),()=>{document.removeEventListener(e,n)}},[r,t,e])}function Od(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Cd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Od(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const kd=e=>e?"doc"===e.type&&e.content?e:{type:"doc",content:[e]}:{type:"doc",content:[]},Ad=(e,t)=>t?s(e):a(e).text,Td=({annotationId:i,onCancel:a,onSubmit:s,popupPortalEl:c,reference:u})=>{const l=(0,ei.useIntl)(),d=(0,Wo.useDispatch)(),{onCopyLink:p}=qo().useContext(Ed),f=qo().useRef(null),h=qo().useRef(),g=qo().useRef({modifiers:[{name:"flip",options:{altAxis:!1,fallbackPlacements:["top","left","right"]}},{name:"offset",options:{offset:[0,15]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"}),m=qo().useRef(!1),y=(0,Wo.useSelector)(Fe),b=(0,Wo.useSelector)(Ue),v=(0,Wo.useSelector)(Ke),w=(0,Wo.useSelector)(e=>We(e,"isRichTextEnabled")),S=(0,Wo.useSelector)(Ge),x=qo().useMemo(()=>p&&i&&v?()=>p({annotationId:i,fileVersionId:v}):void 0,[p,i,v]),E=(0,Wo.useSelector)(e=>i?Me(e,i):void 0),[_,O]=qo().useState({}),C=qo().useRef(new Map),k=qo().useRef({apiHost:y,token:S});k.current={apiHost:y,token:S};const A=qo().useCallback(async e=>{const t=C.current.get(e);if(t)return t;const r=y,n=S,o=await(async(e,t,r,n)=>{try{if(!r)return null;const o=await(async(e,t)=>{const r="function"==typeof e?await e(t):e;return r?"string"==typeof r?r:(n=t in r?r[t]:r)?"string"==typeof n?n:n.read??n.write??null:null:null;var n})(t,`file_${r}`);if(!o)return null;const i=await fetch(`${e}/2.0/users/${n}/avatar?pic_type=large`,{headers:{Authorization:`Bearer ${o}`}});if(!i.ok)return null;const a=await i.blob();return URL.createObjectURL(a)}catch{return null}})(r,n,b,e);if(!o)return null;if(k.current.apiHost!==r||k.current.token!==n)return URL.revokeObjectURL(o),null;const i=C.current.get(e);return i?(URL.revokeObjectURL(o),i):(C.current.set(e,o),o)},[y,b,S]);qo().useEffect(()=>(f.current&&(h.current=$l(u,f.current,g.current)),()=>{h.current?.destroy()}),[u]),qo().useEffect(()=>{const e=C.current;return()=>{e.forEach(e=>URL.revokeObjectURL(e)),e.clear()}},[]),qo().useEffect(()=>{C.current.forEach(e=>URL.revokeObjectURL(e)),C.current.clear(),O({})},[y,S]);const T=qo().useCallback(e=>{e.stopPropagation()},[]),D=qo().useCallback(e=>{m.current=!((e,t)=>!e||0===Ad(kd(e),t).trim().length)(e,w)},[w]),I=qo().useCallback(()=>{m.current||a?.()},[a]);_d("mousedown",f,a?I:void 0),qo().useEffect(()=>{if(!E)return;const e=Array.from(new Set(Sd(E,w).map(e=>String(e.author.id))));let t=!1;return Promise.all(e.map(async e=>[e,await A(e)])).then(e=>{t||O(t=>{const r=Cd({},t);return e.forEach(([e,t])=>{t&&(r[e]=t)}),r})}),()=>{t=!0}},[E,A,w]);const P=qo().useMemo(()=>E?Sd(E,w).map(e=>Cd(Cd({},e),{},{author:Cd(Cd({},e.author),{},{avatarUrl:_[String(e.author.id)]})})):[],[E,_,w]),L="resolved"===E?.status,M=L?E?.resolution?.resolved_by?.name??E?.modified_by?.name:void 0,R=L?E?.resolution?.resolved_at??E?.modified_at:void 0,j=R?new Date(R).getTime():void 0,N=qo().useMemo(()=>({allowEmptyQuery:!0,ariaRoleDescription:l.formatMessage(cu.ariaLabelMentionSelector),fetchAvatarUrls:async e=>{const t={};return await Promise.all(e.map(async({id:e})=>{const r=String(e),n=await A(r);n&&(t[r]=n)})),t},fetchUsers:async e=>{const t=await d(Dr(e));return Dr.fulfilled.match(t)?t.payload.entries.map(xd):[]},loadingAriaLabel:l.formatMessage(cu.ariaLabelMentionLoading)}),[d,A,l]),F=qo().useCallback(async e=>{const t=kd(e),r=Ad(t,w);i?await d(Qe({annotationId:i,message:r})):s(r)},[i,d,w,s]),B=qo().useCallback(async(e,t)=>{if(!i)return;const r=kd(t),n=Ad(r,w);e!==i?await d(rt({annotationId:i,replyId:e,payload:{message:n}})):await d(tt({annotationId:i,payload:{message:n}}))},[i,d,w]),U=qo().useCallback(async()=>{i&&await d(et(i))},[i,d]),K=qo().useCallback(async e=>{i&&e!==i&&await d(nt({annotationId:i,replyId:e}))},[i,d]),H=qo().useCallback(async()=>{if(!i)return;const e=await d(tt({annotationId:i,payload:{status:"resolved"}}));tt.fulfilled.match(e)&&d(ut(null))},[i,d]),z=qo().useCallback(async()=>{i&&await d(tt({annotationId:i,payload:{status:"open"}}))},[i,d]);return i&&!P.length?null:c?fi().createPortal(qo().createElement(xi,null,qo().createElement("div",{ref:f,"aria-label":l.formatMessage(cu.ariaLabelComment),className:"ba-PopupAnnotation","data-resin-component":i?"popupThreadV2":"popupReplyV2","data-resin-feature":"annotations",onMouseDown:T,onMouseMove:T,onTouchMove:T,onTouchStart:T,role:"presentation"},qo().createElement(e,{enableModernizedComponents:!0},qo().createElement(t,null,qo().createElement(r,{value:{collaborationPopoverProps:{onSubmit:()=>Promise.resolve()},fetchCollaboratorState:async()=>!0}},i?qo().createElement(o,{isAnnotations:!0,isResolved:L,isRichTextEnabled:w,messages:P,onAvatarClick:Lr(),onCopyLink:x,onDelete:K,onEdit:B,onPost:F,onResolve:H,onThreadDelete:U,onUnresolve:z,resolvedAt:j,resolvedBy:M,userSelectorProps:N}):qo().createElement(n,{isFirstAnnotation:!0,isRichTextEnabled:w,onChange:D,onPost:F,userSelectorProps:N})))),qo().createElement("div",{"data-threaded-annotations-portal":!0}))),c):null};function Dd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Id(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dd(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Pd={[g.DRAWING]:yn,[g.HIGHLIGHT]:bn,[g.REGION]:vn},Ld=["callbacks","intl","store"];function Md(e){return function(t){let{callbacks:r,intl:n,store:o}=t,i=pt(t,Ld);return Vo.createElement(ei.RawIntlProvider,{value:n},Vo.createElement(Wo.Provider,{store:o},Vo.createElement(Ed.Provider,{value:r??{}},Vo.createElement(e,i))))}}const Rd=e=>e.highlight.isPromoting,jd=e=>e.highlight.isSelecting,Nd=(e,t)=>{const r=(e=>e.highlight.selection)(e);return r&&r.location===t?r:null},Fd={createDrawing:e=>(t,r)=>{const{location:n,message:o,pathGroups:i,targetType:a}=e,s=r(),c={description:{message:o,type:"reply"},file_version:{id:Ke(s)},target:{location:{type:a,value:n},path_groups:i,type:"drawing"}};return t(Ze(c))},createHighlight:e=>(t,r)=>{const{location:n,message:o,shapes:i}=e,a=r(),s={description:{message:o,type:"reply"},file_version:{id:Ke(a)},target:{location:{type:Pe.PAGE,value:n},shapes:i,type:"highlight"}};return t(Ze(s))},createRegion:e=>(t,r)=>{const{location:n,message:o,shape:i,targetType:a}=e,s=r(),c={description:{message:o,type:"reply"},file_version:{id:Ke(s)},target:{location:{type:a,value:n},shape:i,type:"region"}};return t(Ze(c))},resetCreator:Yt,setMessage:Zt},Bd=(0,Wo.connect)((e,{location:t})=>({activeAnnotationId:Le(e),isPromoting:Rd(e),isThreadedAnnotation:We(e,"isThreadedAnnotation"),message:pn(e),mode:Sn(e),referenceId:fn(e),staged:gn(e,t),status:mn(e)}),Fd)(Md(e=>{const{activeAnnotationId:t,createDrawing:r=Lr(),createHighlight:n=Lr(),createRegion:o=Lr(),isPromoting:i=!1,isThreadedAnnotation:a=!1,message:s,mode:c,popupPortalEl:u,referenceId:l,resetCreator:d,setMessage:p,staged:f,status:h,targetType:g}=e,[m,y]=Vo.useState(null),[b,v]=Vo.useState(null),w=(Pd[c]?.(f??null)??!1)||i,S=h!==$t.started&&h!==$t.init,x=h===$t.pending,E=()=>{d()},_=e=>{if(!f)return;const t=e??s;bn(f)?n(Id(Id({},f),{},{message:t,targetType:g})):vn(f)?o(Id(Id({},f),{},{message:t,targetType:g})):yn(f)&&r(Id(Id({},f),{},{message:t,targetType:g}))};Vo.useEffect(()=>{y(l?document.querySelector(`[data-ba-reference-id="${l}"]`):null)},[l]),Vo.useEffect(()=>{if(!t||!a)return v(null),Lr();const e=`[data-ba-annotation-id="${CSS.escape(t)}"]`,r=document.querySelector(e);if(r)return v(r),Lr();v(null);const n=new MutationObserver(()=>{const t=document.querySelector(e);t&&(v(t),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0});const o=window.setTimeout(()=>{n.disconnect()},1e4);return()=>{n.disconnect(),window.clearTimeout(o)}},[t,a]);const O=w&&S&&m&&f;return O&&a?Vo.createElement("div",{className:"ba-PopupLayer-popup"},Vo.createElement(Td,{onCancel:E,onSubmit:_,popupPortalEl:u,reference:m})):O?u?pi.createPortal(Vo.createElement("div",{className:"ba-PopupLayer-popup"},Vo.createElement(md,{isPending:x,onCancel:E,onChange:(e="")=>{p(e)},onSubmit:_,reference:m,value:s})),u):null:a&&t&&b?Vo.createElement("div",{className:"ba-PopupLayer-popup"},Vo.createElement(Td,{annotationId:t,onSubmit:_,popupPortalEl:u,reference:b})):null})),Ud=["popupPortalEl"];class Kd extends Xo{constructor(e){let{popupPortalEl:t}=e;super(pt(e,Ud)),p(this,"popupPortalEl",void 0),this.popupPortalEl=t}decorate(){this.reactEl.classList.add("ba-Layer--popup"),this.reactEl.dataset.testid="ba-Layer--popup"}render({callbacks:e,intl:t,store:r}){this.root||(this.root=Go.createRoot(this.reactEl)),this.root.render(Vo.createElement(Bd,{callbacks:e,intl:t,location:this.location,popupPortalEl:this.popupPortalEl,store:r,targetType:this.targetType}))}}const Hd=function(e){return Vo.createElement("svg",m({"data-testid":"ChevronLeft",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),Vo.createElement("path",{d:"M13.293 4.293a1 1 0 1 1 1.414 1.414L8.414 12l6.293 6.293.068.076a1 1 0 0 1-1.406 1.406l-.076-.068L7 13.414a2 2 0 0 1 0-2.828l6.293-6.293Z",fill:"currentColor"}))},zd=function(e){return Vo.createElement("svg",m({"data-testid":"ChevronRight",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),Vo.createElement("path",{d:"M9.293 4.293a1 1 0 0 1 1.414 0L17 10.586a2 2 0 0 1 0 2.828l-6.293 6.293a1 1 0 0 1-1.414-1.414L15.586 12 9.293 5.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"}))},Vd=(0,ei.defineMessages)({ariaLabelViewNextReference:{id:"ba.boundingBoxHighlight.viewNextReference",description:"Aria label for the button to view the next reference",defaultMessage:"View next reference"},ariaLabelViewPrevReference:{id:"ba.boundingBoxHighlight.viewPrevReference",description:"Aria label for the button to view the previous reference",defaultMessage:"View previous reference"}}),qd=({currentIndex:e,total:t,onPrev:r,onNext:n})=>{const o=(0,ei.useIntl)(),i=0===e,a=e===t-1;return Vo.useEffect(()=>{const e=e=>{"ArrowLeft"===e.key?(e.stopPropagation(),i||r(e)):"ArrowRight"===e.key&&(e.stopPropagation(),a||n(e))};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})},[i,a,r,n]),Vo.createElement("div",{className:"ba-BoundingBoxHighlightNav","data-testid":"ba-BoundingBoxHighlightNav"},Vo.createElement("button",{"aria-label":o.formatMessage(Vd.ariaLabelViewPrevReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-prev",disabled:i,onClick:r,type:"button"},Vo.createElement(Hd,{width:20,height:20})),Vo.createElement("span",{className:"ba-BoundingBoxHighlightNav-counter"},e+1," / ",t),Vo.createElement("button",{"aria-label":o.formatMessage(Vd.ariaLabelViewNextReference),className:"ba-BoundingBoxHighlightNav-btn","data-testid":"ba-BoundingBoxHighlightNav-next",disabled:a,onClick:n,type:"button"},Vo.createElement(zd,{width:20,height:20})))},Gd=({boundingBox:e,currentIndex:t,isSelected:r,onNavigate:n,onSelect:o,total:i,prevId:a,nextId:s})=>{const{id:c,x:u,y:l,width:d,height:p}=e,f={display:"block",left:`${u}%`,top:`${l}%`,width:`${d}%`,height:`${p}%`};return Vo.createElement("div",{className:yi()("ba-BoundingBoxHighlightRect",{"is-selected":r}),"data-testid":`ba-BoundingBoxHighlightRect-${c}`,onClick:e=>{e.stopPropagation(),o?.(c)},role:"presentation",style:f},r&&i>1&&Vo.createElement(qd,{currentIndex:t,onNext:e=>{e.stopPropagation(),s&&n?.(s)},onPrev:e=>{e.stopPropagation(),a&&n?.(a)},total:i}))},Wd=({allBoundingBoxes:e,boundingBoxes:t,onNavigate:r,onSelect:n,selectedId:o})=>{const i=e.length;if(0===i)return null;const a=e.findIndex(e=>e.id===o),s=a>0?e[a-1].id:void 0,c=a<i-1?e[a+1].id:void 0;return Vo.createElement("div",{className:"ba-BoundingBoxHighlightList","data-testid":"ba-BoundingBoxHighlightList"},t.map(e=>Vo.createElement(Gd,{key:e.id,boundingBox:e,currentIndex:a,isSelected:o===e.id,nextId:c,onNavigate:r,onSelect:n,prevId:s,total:i})))},$d=Vo.memo(Wd),Yd={onNavigate:kr,onSelect:Cr},Xd=(0,Wo.connect)((e,{location:t})=>({allBoundingBoxes:Ur(e),boundingBoxes:Kr(e,t),selectedId:Hr(e)}),Yd)(Md($d));class Zd extends Xo{decorate(){this.reactEl.classList.add("ba-Layer--boundingBoxHighlight"),this.reactEl.dataset.testid="ba-Layer--boundingBoxHighlight"}render(e){this.root||(this.root=Go.createRoot(this.reactEl)),this.root.render(Vo.createElement(Xd,m({location:this.location},e)))}}const Jd=["pathCommands"],Qd=(e,t)=>{const{pathCommands:r}=e,n=pt(e,Jd);return qo().createElement("path",m({ref:t,d:r,strokeLinecap:"round",vectorEffect:"non-scaling-stroke"},n))},ep=qo().forwardRef(Qd),tp=(0,Vo.createContext)("");function rp({borderStrokeWidth:e=0,isDecorated:t=!1,points:r=[]}){const n=qo().useContext(tp),o=Tt(r);return qo().createElement("g",{className:"ba-DecoratedDrawingPath"},t&&qo().createElement("g",{className:"ba-DecoratedDrawingPath-decoration"},qo().createElement(ep,{className:"ba-DecoratedDrawingPath-shadow",filter:`url(#${n})`,pathCommands:o}),qo().createElement(ep,{className:"ba-DecoratedDrawingPath-border",fill:"none",pathCommands:o,stroke:Ht,strokeWidth:e})),qo().createElement(ep,{pathCommands:o}))}const np=["className","children"];function op(e,t){let{className:r,children:n}=e,o=pt(e,np);const{current:i}=qo().useRef(`ba-DrawingSVG-shadow_${wt()}`);return qo().createElement("svg",m({ref:t,className:yi()("ba-DrawingSVG",r),preserveAspectRatio:"none",viewBox:"0 0 100 100"},o),qo().createElement("defs",null,qo().createElement("filter",{filterUnits:"userSpaceOnUse",id:i},qo().createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"1"}))),qo().createElement(tp.Provider,{value:i},n))}const ip=qo().forwardRef(op),ap=({children:e,isActive:t=!1,rootEl:r,stroke:{color:n,size:o}})=>{let i=o,a=i+2;if(!("vector-effect"in document.body.style)){if(!r)return Vo.createElement("g",{className:"ba-DrawingPathGroup"});const{clientWidth:e}=r,t=e/100;i/=t,a/=t}return Vo.createElement("g",{className:yi()("ba-DrawingPathGroup",{"is-active":t}),fill:"transparent",stroke:n,strokeWidth:i},"function"==typeof e?e(a):e)},sp=(e,t)=>{const{annotationId:r,className:n,isActive:o=!1,onSelect:i=Lr(),rootEl:a,target:{path_groups:s}}=e,c=Dt(s),{x:u,y:l}=At(c),d=()=>{i(r)};return Vo.createElement("a",{ref:t,className:yi()("ba-DrawingTarget",n,{"is-active":o}),"data-ba-annotation-id":r,"data-resin-itemid":r,"data-resin-target":"highlightDrawing","data-testid":`ba-AnnotationTarget-${r}`,href:"#",onFocus:d,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():d()},role:"button",tabIndex:0},Vo.createElement("rect",m({fill:"transparent",transform:`translate(-${.1*u}, -${.1*l}) scale(1.1)`},c)),s.map(({clientId:e,paths:t,stroke:r})=>Vo.createElement(ap,{key:e,isActive:o,rootEl:a,stroke:r},e=>t.map(({clientId:t,points:r})=>Vo.createElement(rp,{key:t,borderStrokeWidth:e,isDecorated:!0,points:r})))))},cp=Vo.forwardRef(sp);function up(){const e=Wo.useSelector(mn),t=Wo.useSelector(jd);return e===$t.init&&!t}function lp(e){return e>=0&&e<=100}function dp({target:{path_groups:e}}){return e.every(({paths:e})=>e.every(({points:e})=>e.every(({x:e,y:t})=>lp(e)&&lp(t))))}function pp({target:e},{target:t}){const{height:r,width:n}=Dt(e.path_groups),{height:o,width:i}=Dt(t.path_groups);return o*i-r*n}function fp({activeId:e=null,annotations:t,className:r,onSelect:n=Lr()}){const[o,i]=qo().useState(null),a=up();return qo().createElement(ip,{ref:i,className:yi()(r,{"is-listening":a}),"data-resin-component":"drawingList"},t.filter(dp).sort(pp).map(({id:t,target:r})=>qo().createElement(cp,{key:t,annotationId:t,isActive:e===t,onSelect:n,rootEl:o,target:r})))}const hp=qo().memo(fp),gp=["children","className","onDrawStart","onDrawStop","onDrawUpdate","onMouseOut","onMouseOver","status"];let mp=function(e){return e.dragging="dragging",e.drawing="drawing",e.init="init",e}({});function yp(e,t){const{children:r,className:n,onDrawStart:o,onDrawStop:i,onDrawUpdate:a,onMouseOut:s=Lr(),onMouseOver:c=Lr(),status:u}=e,l=pt(e,gp);return qo().useEffect(()=>{const e=({buttons:e,clientX:t,clientY:r})=>{1===e&&u!==mp.init&&a(t,r)},t=()=>{i()};return u!==mp.init&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[i,a,u]),qo().createElement("div",m({ref:t,className:n,onClick:e=>{e.preventDefault(),e.stopPropagation()},onMouseDown:({buttons:e,clientX:t,clientY:r})=>{1===e&&o(t,r)},onMouseOut:()=>{s()},onMouseOver:()=>{c()},onTouchCancel:()=>{i()},onTouchEnd:()=>{i()},onTouchMove:({targetTouches:e})=>{a(e[0].clientX,e[0].clientY)},onTouchStart:({targetTouches:e})=>{o(e[0].clientX,e[0].clientY)},role:"presentation"},l),r)}const bp=qo().forwardRef(yp),vp=zt;function wp({className:e,color:t=vp,onStart:r,onStop:n,rotation:o=0,size:i=4}){const[a,s]=qo().useState(mp.init),c=qo().useRef([]),u=qo().useRef(null),l=qo().useRef(!1),d=qo().useRef(null),p=qo().useRef(null),f=qo().useRef(null),h=qo().useMemo(()=>({color:t,size:i}),[t,i]),g=qo().useCallback(()=>{const{current:e}=u,{current:t}=c;if(!e||!t.length)return[];const r=e.offsetWidth,n=e.offsetHeight,{size:o}=h,i=r-o,a=n-o;return t.map(({x:e,y:t})=>({x:Math.min(i,Math.max(o,e))/r*100,y:Math.min(a,Math.max(o,t))/n*100}))},[h]),m=qo().useCallback(()=>{const e=g();!e||e.length<=1||(s(mp.init),c.current=[],l.current=!0,n({paths:[{points:e}],stroke:h}))},[g,n,s,h]),y=qo().useCallback((e,t)=>{const[n,i]=vr(e,t,u.current,o),{current:d}=c;d.push({x:n,y:i}),l.current=!0,a!==mp.drawing&&(s(mp.drawing),r())},[a,r,o,s]),b=e=>{f.current=window.requestAnimationFrame(e)},v=()=>{const{current:e}=l,{current:t}=d;e&&t&&(t.setAttribute("d",Tt(g())),l.current=!1),b(v)};return qo().useEffect(()=>(a!==mp.init&&b(v),()=>{const{current:e}=f;e&&window.cancelAnimationFrame(e)}),[a]),qo().useEffect(()=>{const{current:e}=u;e&&(e.style.cursor="crosshair",e.style.cursor=(e=>`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'>\n <defs>\n <path id='ba-DrawingCursor-b' d='M23.0868949,12.6610542 L21.7362465,14.0116939 C21.5985448,14.1493947 21.3758783,14.1493947 21.2381766,14.0116939 L17.9860729,10.7596114 C17.8483713,10.6219106 17.8483713,10.3992455 17.9860729,10.2615447 L19.3367214,8.91090502 C19.8845983,8.36303166 20.7752645,8.36303166 21.3260713,8.91090502 L23.0868949,10.6717173 C23.6377017,11.2195906 23.6377017,12.1102511 23.0868949,12.6610542 Z M16.825863,11.4217471 L9.13214756,19.1154126 L8.51102507,22.6751246 C8.4260602,23.1556124 8.8450249,23.5716446 9.32551588,23.4896101 L12.8852509,22.8655618 L20.5789664,15.1718963 C20.7166681,15.0341955 20.7166681,14.8115304 20.5789664,14.6738296 L17.3268627,11.4217471 C17.1862312,11.2840463 16.9635647,11.2840463 16.825863,11.4217471 Z M12.1352162,18.4562067 C11.974076,18.2950675 11.974076,18.0372447 12.1352162,17.8761055 L16.6471438,13.3642072 C16.8082841,13.203068 17.0661085,13.203068 17.2272488,13.3642072 C17.388389,13.5253464 17.388389,13.7831692 17.2272488,13.9443084 L12.7153212,18.4562067 C12.5541809,18.6173459 12.2963565,18.6173459 12.1352162,18.4562067 L12.1352162,18.4562067 Z M11.0775501,20.9201719 L12.4838652,20.9201719 L12.4838652,21.9836908 L10.5941293,22.3147587 L9.6829543,21.4035896 L10.0140243,19.513866 L11.0775501,19.513866 L11.0775501,20.9201719 Z'/>\n <filter id='ba-DrawingCursor-a' width='196.7%' height='196.7%' x='-48.3%' y='-41.7%' filterUnits='objectBoundingBox'>\n <feMorphology in='SourceAlpha' operator='dilate' radius='.75' result='shadowSpreadOuter1'/>\n <feOffset dy='1' in='shadowSpreadOuter1' result='shadowOffsetOuter1'/>\n <feGaussianBlur in='shadowOffsetOuter1' result='shadowBlurOuter1' stdDeviation='2'/>\n <feComposite in='shadowBlurOuter1' in2='SourceAlpha' operator='out' result='shadowBlurOuter1'/>\n <feColorMatrix in='shadowBlurOuter1' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24647618 0'/>\n </filter>\n </defs>\n <g fill='none' stroke-linejoin='round'>\n <use fill='#000' filter='url(#ba-DrawingCursor-a)' xlink:href='#ba-DrawingCursor-b'/>\n <path fill='${e}' fill-rule='evenodd' stroke='#FFF' stroke-width='.75' d='M16.8075762,10.9097054 L21.119532,14.6460363 L13.0730631,23.2133559 L9.38862666,23.8592613 C9.02061417,23.9220923 8.67630709,23.7937251 8.44046,23.5578795 C8.23387707,23.3512979 8.11025348,23.0623685 8.12610763,22.7471873 L8.14160649,22.6106659 L8.78311611,18.9341134 L16.8075762,10.9097054 Z M10.3290377,19.888866 L10.0859707,21.276275 L10.7214427,21.9117429 L12.1088652,21.6686767 L12.1088652,21.2951719 L10.7025501,21.2951719 L10.3290377,19.888866 Z M16.912308,13.6293731 L12.4003804,18.1412714 L12.3922785,18.1528739 L12.3922785,18.1528739 L12.389361,18.1661561 C12.389361,18.1753081 12.3934679,18.1841284 12.4003804,18.1910408 C12.4072938,18.1979542 12.4161155,18.2020611 12.4252687,18.2020611 C12.4344219,18.2020611 12.4432436,18.1979542 12.450157,18.1910408 L12.450157,18.1910408 L16.9620846,13.6791425 L16.9701864,13.66754 L16.9701864,13.66754 L16.973104,13.6542578 C16.973104,13.6384287 16.9537538,13.6286304 16.912308,13.6293731 L16.912308,13.6293731 Z M20.3302976,8.125 C20.7859086,8.125 21.2419828,8.29834457 21.5912354,8.64573912 L21.5912354,8.64573912 L23.3513511,10.4058452 C23.7004504,10.7530854 23.875,11.2089541 23.875,11.6652871 C23.875,12.1211084 23.7008005,12.577481 23.3520591,12.9262201 L23.3520591,12.9262201 L21.7544376,14.5238313 L17.4797801,10.8169258 L19.0500461,8.66761683 C19.3996549,8.30599451 19.8646885,8.125 20.3302976,8.125 Z'/>\n </g>\n </svg>`)}") 6 22, crosshair`)(t))},[t,u]),qo().createElement(bp,{ref:u,className:yi()(e,"ba-DrawingCreator"),"data-testid":"ba-DrawingCreator",onDrawStart:(e,t)=>{const[r,n]=vr(e,t,u.current,o);s(mp.dragging),c.current=[{x:r,y:n}],l.current=!0},onDrawStop:m,onDrawUpdate:y,status:a},a!==mp.init&&qo().createElement(ip,{ref:p,className:"ba-DrawingCreator-current"},qo().createElement(ap,{rootEl:p.current,stroke:h},qo().createElement(ep,{ref:d}))))}function Sp(e){const t=qo().useRef(wt());return qo().useEffect(()=>{e(t.current)},[e]),t.current}const xp=["children","onMount"];function Ep(e,t){const{children:r,onMount:n=Lr()}=e,o=pt(e,xp),i=Sp(n);return qo().createElement("g",m({ref:t,"data-ba-reference-id":i},o),r)}const _p=qo().forwardRef(Ep);var Op=l(179),Cp=l.n(Op),kp=l(7200),Ap=l.n(kp);const Tp=["children","title"];class Dp extends Vo.Component{constructor(...e){super(...e),function(e,t,r){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"id",Ap()("icon"))}render(){const e=this.props,{children:t,title:r}=e,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Tp),o=`${this.id}-title`,i=Cp()(n,["role","aria-labelledby"]);return i.focusable="false",r?(i["aria-labelledby"]=o,i.role="img"):(i["aria-hidden"]="true",i.role="presentation"),Vo.createElement("svg",i,r?Vo.createElement("title",{id:o},r):null,t)}}const Ip=Dp;function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pp.apply(null,arguments)}const Lp=e=>Vo.createElement(Ip,Pp({width:16,height:16,viewBox:"0 0 16 16"},e),Vo.createElement("path",{fill:Vt,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zm1.313 2.743c.162 0 .301.054.417.178l2.057 2.088a.685.685 0 01.21.487c0 .178-.078.34-.21.472l-2.064 2.11a.59.59 0 01-1.005-.433c0-.146.053-.309.177-.41l.92-.858.449-.324-.828.038H7.147c-1.09 0-1.902.78-1.902 1.909 0 1.16.908 1.8 2.022 1.8h1.082c.372 0 .647.217.647.604 0 .386-.268.596-.654.596H7.267C5.442 12 4 10.856 4 9s1.33-3.084 3.147-3.084h2.29l.827.039-.58-.449-.781-.75a.543.543 0 01-.186-.418.59.59 0 01.596-.595z"}));function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mp.apply(null,arguments)}const Rp=e=>Vo.createElement(Ip,Mp({width:16,height:16,viewBox:"0 0 16 16"},e),Vo.createElement("path",{fill:"#222",fillRule:"evenodd",d:"M14 2l-1.8 11c-.1.6-.7 1-1.2 1H5c-.6 0-1.1-.5-1.2-1L2 2h12zm-1.2 1H3.2l1.6 9.9s.1.1.2.1h6c.06 0 .12-.036.158-.065l.042-.035L12.8 3zm-2.3 1c.3 0 .5.2.5.5s-.2.5-.5.5h-5c-.3 0-.5-.2-.5-.5s.2-.5.5-.5z"}));function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(null,arguments)}const Np=e=>Vo.createElement(Ip,jp({width:16,height:16,viewBox:"0 0 16 16"},e),Vo.createElement("path",{fill:Vt,d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 1a7 7 0 100 14A7 7 0 008 1zM6.683 3.743a.59.59 0 01.596.595c0 .17-.07.317-.186.418l-.78.75-.58.449.827-.04h2.289c1.817 0 3.147 1.229 3.147 3.085 0 1.856-1.442 3-3.267 3H7.654C7.268 12 7 11.79 7 11.404c0-.387.276-.604.647-.604h1.082c1.114 0 2.022-.64 2.022-1.8 0-1.129-.812-1.909-1.902-1.909h-2.29l-.827-.038.449.324.92.859c.124.1.178.263.178.41a.59.59 0 01-1.005.433L4.209 6.968A.664.664 0 014 6.496c0-.186.077-.356.209-.487L6.266 3.92a.545.545 0 01.417-.178z"})),Fp=function(e){return Vo.createElement("svg",m({"data-testid":"ArrowBack",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),Vo.createElement("path",{d:"M6.91086 1.91058C7.2363 1.58515 7.76381 1.58515 8.08925 1.91058C8.41462 2.23602 8.41462 2.76355 8.08925 3.08896L5.34511 5.8331H12.5C14.1062 5.83312 15.3897 6.4396 16.2574 7.47291C17.1089 8.4871 17.5 9.83869 17.5 11.2498C17.5 12.6609 17.109 14.0125 16.2574 15.0266C15.3897 16.0599 14.1062 16.6664 12.5 16.6664H10C9.53987 16.6664 9.16679 16.2933 9.16671 15.8331C9.16671 15.3729 9.53979 14.9998 10 14.9998H12.5C13.6552 14.9998 14.4553 14.5803 14.9805 13.9549C15.5219 13.3102 15.8334 12.3699 15.8334 11.2498C15.8334 10.1296 15.5219 9.18935 14.9805 8.54469C14.4553 7.91928 13.6552 7.49979 12.5 7.49977H5.34511L8.08925 10.2439C8.41462 10.5694 8.41471 11.0969 8.08925 11.4223C7.76384 11.7477 7.23631 11.7477 6.91086 11.4223L2.7442 7.25563C2.41876 6.9302 2.41876 6.40268 2.7442 6.07725L6.91086 1.91058Z",fill:"#fff"}))},Bp=function(e){return Vo.createElement("svg",m({"data-testid":"ArrowForward",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),Vo.createElement("path",{d:"M11.9108 1.91058C12.2363 1.58515 12.7638 1.58515 13.0892 1.91058L17.2558 6.07725C17.5813 6.40268 17.5813 6.9302 17.2558 7.25563L13.0892 11.4223C12.7638 11.7477 12.2363 11.7477 11.9108 11.4223C11.5854 11.0969 11.5854 10.5694 11.9108 10.2439L14.6549 7.49977H7.5C6.34482 7.49977 5.54479 7.91927 5.01953 8.54469C4.4782 9.18935 4.16667 10.1296 4.16667 11.2498C4.16668 12.3699 4.47819 13.3102 5.01953 13.9549C5.54479 14.5803 6.34484 14.9998 7.5 14.9998H10C10.4603 14.9998 10.8333 15.3729 10.8333 15.8331C10.8333 16.2933 10.4603 16.6664 10 16.6664H7.5C5.89388 16.6664 4.6104 16.0599 3.74268 15.0266C2.89112 14.0125 2.50001 12.6609 2.5 11.2498C2.5 9.83869 2.89113 8.4871 3.74268 7.47291C4.6104 6.43958 5.89385 5.8331 7.5 5.8331H14.6549L11.9108 3.08896C11.5854 2.76354 11.5854 2.23602 11.9108 1.91058Z",fill:"#fff"}))},Up=function(e){return Vo.createElement("svg",m({"data-testid":"Trash",fill:"none",focusable:"false",height:"1em",role:"img",viewBox:"0 0 20 20",width:"1em"},e),Vo.createElement("path",{clipRule:"evenodd",d:"M7.55758 4.25017C7.6296 3.87481 7.75758 3.73256 7.87369 3.65128C7.99454 3.56669 8.19891 3.47991 8.56146 3.41949C8.92362 3.35914 9.39079 3.33317 9.99996 3.33317C10.6092 3.33317 11.0764 3.35914 11.4385 3.41949C11.801 3.47991 12.0054 3.56669 12.1263 3.65128C12.2424 3.73256 12.3704 3.87481 12.4424 4.25017C11.7196 4.1984 10.9065 4.1665 9.99996 4.1665C9.09346 4.1665 8.2803 4.1984 7.55758 4.25017ZM5.85575 4.42505C5.92957 3.5488 6.20244 2.78673 6.91792 2.2859C7.31791 2.0059 7.79063 1.8583 8.28746 1.7755C8.78471 1.69262 9.35921 1.6665 9.99996 1.6665C10.6408 1.6665 11.2153 1.69262 11.7125 1.7755C12.2093 1.8583 12.682 2.0059 13.082 2.2859C13.7975 2.78673 14.0704 3.5488 14.1442 4.42505C14.5419 4.47947 14.8961 4.53848 15.208 4.59789C15.7812 4.70707 16.2109 4.81752 16.5036 4.90318C16.6499 4.946 16.762 4.98262 16.8405 5.00976C16.8797 5.02333 16.9105 5.03452 16.9331 5.04294L16.9608 5.05343L16.97 5.05701L16.9735 5.05837L16.9749 5.05895C16.9752 5.05906 16.9761 5.05944 16.6666 5.83317L16.9761 5.05944C17.4035 5.23037 17.6113 5.71535 17.4404 6.14266C17.2975 6.49966 16.9356 6.70348 16.5711 6.66122L16.0734 15.1939C15.9706 16.9565 14.5113 18.3332 12.7457 18.3332H7.25422C5.48867 18.3332 4.02937 16.9565 3.92655 15.1939L3.42881 6.66122C3.06437 6.70348 2.70237 6.49966 2.55958 6.14266C2.38865 5.71535 2.5965 5.23037 3.02382 5.05944L3.33331 5.83317C3.02382 5.05944 3.02351 5.05955 3.02382 5.05944L3.02506 5.05895L3.02649 5.05837L3.02994 5.05701L3.03914 5.05343L3.06682 5.04294C3.0894 5.03452 3.12027 5.02333 3.15952 5.00976C3.23802 4.98262 3.35004 4.946 3.49637 4.90318C3.78904 4.81752 4.21877 4.70707 4.79197 4.59789C5.10387 4.53848 5.45812 4.47947 5.85575 4.42505ZM5.59039 15.0969L5.07378 6.24087L5.10382 6.23512C6.1447 6.03685 7.75911 5.83317 9.99996 5.83317C12.2409 5.83317 13.8553 6.03685 14.8961 6.23512L14.9261 6.24087L14.4095 15.0969C14.3581 15.9782 13.6285 16.6665 12.7457 16.6665H7.25422C6.37145 16.6665 5.6418 15.9782 5.59039 15.0969ZM11.6666 7.49984C12.1269 7.49984 12.5 7.87294 12.5 8.33317V14.1665C12.5 14.6268 12.1269 14.9998 11.6666 14.9998C11.2064 14.9998 10.8333 14.6268 10.8333 14.1665V8.33317C10.8333 7.87294 11.2064 7.49984 11.6666 7.49984ZM9.16662 8.33317C9.16662 7.87294 8.79354 7.49984 8.33329 7.49984C7.87307 7.49984 7.49997 7.87294 7.49997 8.33317V14.1665C7.49997 14.6268 7.87307 14.9998 8.33329 14.9998C8.79354 14.9998 9.16662 14.6268 9.16662 14.1665V8.33317Z",fill:"#fff",fillRule:"evenodd"}))},Kp={modifiers:[{name:"offset",options:{offset:({popper:e})=>[-e.width/2,8]}},{name:"preventOverflow",options:{padding:50}}],placement:"top"},Hp=20,zp=(e,t)=>{const{canComment:r,canRedo:n,canUndo:o,className:i,onDelete:a,onRedo:s,onReply:c,onUndo:u,reference:l}=e,d=(0,Wo.useSelector)(e=>We(e,"modernization")),p=(0,ei.useIntl)();return qo().createElement(Zl,{ref:t,className:yi()(i,"ba-PopupDrawingToolbar",{"ba-PopupDrawingToolbar--modernized":d}),"data-resin-component":"popupDrawingToolbar",options:Kp,reference:l},qo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},qo().createElement("button",{className:"ba-PopupDrawingToolbar-undo","data-testid":"ba-PopupDrawingToolbar-undo",disabled:!o,onClick:()=>u(),title:p.formatMessage(cu.drawingButtonUndo),type:"button"},d?qo().createElement(Fp,{height:Hp,width:Hp}):qo().createElement(Np,null)),qo().createElement("button",{className:"ba-PopupDrawingToolbar-redo","data-testid":"ba-PopupDrawingToolbar-redo",disabled:!n,onClick:()=>s(),title:p.formatMessage(cu.drawingButtonRedo),type:"button"},d?qo().createElement(Bp,{height:Hp,width:Hp}):qo().createElement(Lp,null)),qo().createElement("button",{className:"ba-PopupDrawingToolbar-delete","data-testid":"ba-PopupDrawingToolbar-delete",onClick:()=>a(),title:p.formatMessage(cu.drawingButtonDelete),type:"button"},d?qo().createElement(Up,{height:Hp,width:Hp}):qo().createElement(Rp,null))),qo().createElement("div",{className:"ba-PopupDrawingToolbar-group"},qo().createElement("button",{className:"ba-PopupDrawingToolbar-comment","data-testid":"ba-PopupDrawingToolbar-comment",disabled:!r,onClick:()=>c(),type:"button"},qo().createElement(ei.FormattedMessage,cu.drawingButtonAddComment))))},Vp=qo().forwardRef(zp);function qp(e){return 1e3*(e?.currentTime??0)}const Gp=({targetType:e,referenceEl:t,activeAnnotationId:r,annotations:n})=>{const[o,i]=(0,Vo.useState)(!1),[a,s]=(0,Vo.useState)(null),c=(0,Vo.useCallback)(()=>qp(t),[t]);return(0,Vo.useEffect)(()=>{if(e!==Pe.FRAME||!t)return;const r=()=>{i(!0)},n=()=>{i(!1),s(null)},u=()=>{if(o&&null!==a){const e=c();Math.abs(e-a)<=100&&(i(!1),s(null))}};return t.addEventListener("seeking",r),t.addEventListener("seeked",n),t.addEventListener("timeupdate",u),()=>{t.removeEventListener("seeking",r),t.removeEventListener("seeked",n),t.removeEventListener("timeupdate",u)}},[e,t,o,a,c]),(0,Vo.useEffect)(()=>{if(e===Pe.FRAME&&r&&t){const e=c(),t=n.find(e=>e.id===r);if(t){const r=t.target.location.value;Math.abs(e-r)>100&&(s(r),i(!0))}}},[r,e,t,n,c]),{isVideoSeeking:o,getCurrentVideoLocation:c}},Wp=(e,t)=>e.drawing.location===t?e.drawing.drawnPathGroups:[],$p=(e,t)=>e.drawing.location===t?e.drawing.stashedPathGroups:[],Yp={addDrawingPathGroup:nr,redoDrawingPathGroup:or,resetDrawing:ir,setActiveAnnotationId:ut,setReferenceId:Jt,setStaged:Qt,setStatus:er,setupDrawing:e=>(t,r)=>{const n=r();return mn(n)===$t.staged&&t(ir()),t(ar(e))},undoDrawingPathGroup:sr},Xp=(0,Wo.connect)((e,{location:t})=>{const r=mn(e);return{activeAnnotationId:Le(e),annotations:je(e,t).filter(It),color:xn(e),canShowPopupToolbar:r===$t.started,drawnPathGroups:Wp(e,t),isCreating:Sn(e)===g.DRAWING&&r!==$t.pending,rotation:Ve(e),stashedPathGroups:$p(e,t)}},Yp)(Md(e=>{const{activeAnnotationId:t,addDrawingPathGroup:r,annotations:n,canShowPopupToolbar:o,color:i,drawnPathGroups:a,isCreating:s,location:c,popupPortalEl:u,redoDrawingPathGroup:l,resetDrawing:d,rotation:p,setActiveAnnotationId:f,setReferenceId:h,setStaged:g,setStatus:m,setupDrawing:y,stashedPathGroups:b,undoDrawingPathGroup:v,targetType:w,referenceEl:S}=e,[x,E]=qo().useState(!1),[_,O]=qo().useState(null),C=a.length>0,k=b.length>0,A=C||k,T=qo().useRef(null),D=qo().useRef(null),{current:I}=D,{isVideoSeeking:P,getCurrentVideoLocation:L}=Gp({targetType:w,referenceEl:S,activeAnnotationId:t,annotations:n}),M=()=>{d()},R=()=>{l()},j=()=>{const e=w===Pe.FRAME?L():c;g({location:e,pathGroups:a}),m($t.staged)},N=()=>{v()};qo().useEffect(()=>{const{current:e}=T;e?.popper&&a.length&&e.popper.update()},[a]);let F=[];return w===Pe.FRAME?!P&&t&&(F=n.filter(e=>e.id===t)):F=n,qo().createElement(qo().Fragment,null,qo().createElement(hp,{activeId:t,annotations:F,className:"ba-DrawingAnnotations-list",onSelect:e=>{f(e)}}),A&&qo().createElement(ip,{ref:O,className:"ba-DrawingAnnotations-target"},qo().createElement(_p,{ref:D,onMount:e=>{h(e)}},a.map(({clientId:e,paths:t,stroke:r})=>qo().createElement(ap,{key:e,rootEl:_,stroke:r},e=>t.map(({clientId:t,points:r})=>qo().createElement(rp,{key:t,borderStrokeWidth:e,isDecorated:!0,points:r})))))),s&&qo().createElement(wp,{className:"ba-DrawingAnnotations-creator",color:i,onStart:()=>{y(c),m($t.started),E(!0)},onStop:e=>{r(e),E(!1)},rotation:p}),s&&A&&I&&o&&(()=>{const e=qo().createElement(Vp,{ref:T,canComment:C,canRedo:k,canUndo:C,className:yi()("ba-DrawingAnnotations-toolbar",{"ba-is-drawing":x}),onDelete:M,onRedo:R,onReply:j,onUndo:N,reference:I});return u?fi().createPortal(e,u):e})())})),Zp=["popupPortalEl"];class Jp extends Xo{constructor(e){let{popupPortalEl:t}=e;super(pt(e,Zp)),p(this,"popupPortalEl",void 0),this.popupPortalEl=t}decorate(){this.reactEl.classList.add("ba-Layer--drawing"),this.reactEl.dataset.testid="ba-Layer--drawing"}render(e){this.root||(this.root=Go.createRoot(this.reactEl)),this.root.render(Vo.createElement(Xp,m({referenceEl:this.referenceEl,targetType:this.targetType,location:this.location,popupPortalEl:this.popupPortalEl},e)))}}const Qp={display:"none"},ef=e=>{const{x:t,y:r}=e,{x:n,y:o}=(e=>{const{height:t,width:r}=e;return{x:r/2,y:t/2}})(e);return{x:n+t,y:o+r}};function tf(e){return"region"===e?.target?.type}function rf(e){if(!e)return Qp;const{height:t,width:r,x:n,y:o}=e;return{display:"block",height:`${t}%`,left:`${n}%`,top:`${o}%`,width:`${r}%`}}const nf=(e,t)=>{const{annotationId:r,className:n,isActive:o,onSelect:i=Lr(),shape:a}=e;return Vo.createElement("button",{ref:t,className:yi()("ba-RegionAnnotation",n,{"is-active":o}),"data-ba-annotation-id":r,"data-resin-itemid":r,"data-resin-target":"highlightRegion","data-testid":`ba-AnnotationTarget-${r}`,onFocus:()=>{i(r)},onMouseDown:e=>{1===e.buttons&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.focus())},style:rf(a),type:"button"})},of=Vo.forwardRef(nf);function af({target:e}){const{shape:t}=e,{height:r,width:n,x:o,y:i}=t;return lp(r)&&lp(n)&&lp(o)&&lp(i)}function sf({target:e},{target:t}){const{shape:r}=e,{shape:n}=t;return r.height*r.width>n.height*n.width?-1:1}function cf({activeId:e,annotations:t,className:r,onSelect:n=Lr()}){const o=up(),i=qo().createRef();return qo().createElement("div",{ref:i,className:yi()(r,{"is-listening":o}),"data-resin-component":"regionList"},t.filter(af).sort(sf).map(({id:t,target:r})=>qo().createElement(of,{key:t,annotationId:t,isActive:e===t,onSelect:n,shape:r.shape})))}const uf=qo().memo(cf),lf={setActiveAnnotationId:ut},df=(0,Wo.connect)((e,{location:t})=>({activeAnnotationId:Le(e),annotations:je(e,t).filter(tf)}),lf)(Md(e=>{const{activeAnnotationId:t,annotations:r,setActiveAnnotationId:n,referenceEl:o,targetType:i}=e,{isVideoSeeking:a}=Gp({targetType:i,referenceEl:o,activeAnnotationId:t||null,annotations:r||[]});let s=[];return i===Pe.FRAME?!a&&t&&(s=r.filter(e=>e.id===t)):s=r,Vo.createElement(uf,{activeId:t,annotations:s,className:"ba-RegionAnnotations-list",onSelect:e=>{n(e)}})}));class pf extends Xo{decorate(){this.reactEl.classList.add("ba-Layer--region"),this.reactEl.dataset.testid="ba-Layer--region"}render(e){this.root||(this.root=Go.createRoot(this.reactEl)),this.root.render(Vo.createElement(df,m({location:this.location,referenceEl:this.referenceEl,targetType:this.targetType},e)))}}const ff={modifiers:[{name:"offset",options:{offset:[0,20]}}],placement:"right"},hf=(e=0,t=0)=>()=>Yl(0,0,e,t);function gf(){const e=qo().useRef(null),t=qo().useRef({getBoundingClientRect:hf()}),r=({clientX:r,clientY:n})=>{t.current.getBoundingClientRect=hf(r,n);const{current:o}=e;o?.popper&&o.popper.update()};return qo().useEffect(()=>(document.addEventListener("mousemove",r),()=>{document.removeEventListener("mousemove",r)}),[]),qo().createElement(Zl,{ref:e,className:"ba-PopupCursor",options:ff,reference:t.current},qo().createElement(ei.FormattedMessage,cu.regionCursorPrompt))}function mf(e,t){const{className:r,isActive:n,onMount:o=Lr(),shape:i}=e,a=Sp(o);return qo().createElement("div",{ref:t,className:yi()("ba-RegionRect",r,{"is-active":n}),"data-ba-reference-id":a,style:rf(i)})}const yf=qo().forwardRef(mf),bf=/(auto|scroll)/,vf=["overflow","overflow-x","overflow-y"],wf=e=>e&&e!==document.body?(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=getComputedStyle(e,null);return vf.some(e=>bf.test(t.getPropertyValue(e)))})(e)?e:wf(e.parentNode):document.body,Sf=10;function xf({className:e,onAbort:t,onStart:r,onStop:n,rotation:o=0}){const[i,a]=Vo.useState(mp.init),[s,c]=Vo.useState(!1),u=Vo.useRef(null),l=Vo.useRef(null),d=Vo.useRef(null),p=Vo.useRef(null),f=Vo.useRef(null),h=Vo.useRef(!1),g=Vo.useRef(null),y=Vo.useRef(null),b=()=>{const{current:e}=u,{current:t}=l,{current:r}=p,{current:n}=d,{current:o}=f;if(!e||null===t||null===n||null===r||null===o)return null;const i=e.offsetWidth,a=e.offsetHeight,s=a-Sf,c=i-Sf,h=Math.max(0,i-0),g=Math.max(0,a-0),m=t>=c&&n>=c?t-Sf:t,y=r>=s&&o>=s?r-Sf:r,b=Math.min(Math.max(0,m<n?m:n),h),v=Math.min(Math.max(0,y<o?y:o),g),w=Math.min(Math.max(0,n>m?n:m),h),S=Math.min(Math.max(0,o>y?o:y),g);return{height:Math.max(Sf,S-v)/a*100,type:"rect",width:Math.max(Sf,w-b)/i*100,x:b/i*100,y:v/a*100}},v=Vo.useCallback(()=>{const e=b();a(mp.init),l.current=null,p.current=null,d.current=null,f.current=null,h.current=!0,e?n(e):t()},[t,n,a]),w=Vo.useCallback((e,t)=>{const[n,s]=vr(e,t,u.current,o),{current:c}=l,{current:g}=p,{current:m}=d;(null!==m||((e,t,r,n)=>Math.abs(r-e)>=Sf||Math.abs(n-t)>=Sf)(c??0,g??0,n,s))&&(d.current=n,f.current=s,h.current=!0,i!==mp.drawing&&(a(mp.drawing),r()))},[i,r,o,a]),S=e=>{y.current=window.requestAnimationFrame(e)},x=()=>{const{current:e}=h,{current:t}=g,r=b();e&&t&&r&&(m(t.style,rf(r)),h.current=!1),S(x)};return Vo.useEffect(()=>(i!==mp.init&&S(x),()=>{const{current:e}=y;e&&window.cancelAnimationFrame(e)}),[i]),function(e){const{enabled:t,intensity:r=.2,onScroll:n=Lr(),reference:o,size:i=50}=e,a=qo().useRef(null),s=qo().useRef(null),c=qo().useRef(null),u=qo().useRef(null),l=qo().useRef(null),d=e=>{a.current=window.requestAnimationFrame(e)},p=()=>{const{current:e}=s,{current:t}=c,{current:o}=u,{current:a}=l;if(!e||!t||null===o||null===a)return d(p);const f=t.bottom-i,h=t.left+i,g=t.right-i,m=t.top+i,y=a>f,b=o<h,v=o>g,w=a<m;if(!(y||b||v||w))return d(p);let S=e.scrollLeft,x=e.scrollTop;return b?S-=(h-o)*r:v&&(S+=(o-g)*r),w?x-=(m-a)*r:y&&(x+=(a-f)*r),e.scrollLeft=Math.max(0,Math.min(Math.round(S),e.scrollWidth)),e.scrollTop=Math.max(0,Math.min(Math.round(x),e.scrollHeight)),n(o,a),d(p)},f=({clientX:e,clientY:t})=>{u.current=e,l.current=t},h=({targetTouches:e})=>{u.current=e[0].clientX,l.current=e[0].clientY};qo().useEffect(()=>{o&&(s.current=wf(o),c.current=s.current.getBoundingClientRect())},[o]),qo().useEffect(()=>(t&&(document.addEventListener("mousemove",f),document.addEventListener("touchmove",h),d(p)),()=>{const{current:e}=a;e&&window.cancelAnimationFrame(e),a.current=null,u.current=null,l.current=null,document.removeEventListener("mousemove",f),document.removeEventListener("touchmove",h)}),[t])}({enabled:i!==mp.init,onScroll:(e,t)=>{w(e,t)},reference:u.current}),Vo.createElement(bp,{ref:u,className:yi()(e,"ba-RegionCreator"),"data-testid":"ba-RegionCreator",onDrawStart:(e,t)=>{const[r,n]=vr(e,t,u.current,o);a(mp.dragging),l.current=r,p.current=n,d.current=null,f.current=null,h.current=!0},onDrawStop:v,onDrawUpdate:w,onMouseOut:()=>{c(!1)},onMouseOver:()=>{c(!0)},status:i},i===mp.drawing&&Vo.createElement(yf,{ref:g,className:"ba-RegionCreator-rect",isActive:!0}),i===mp.init&&s&&Vo.createElement(gf,null))}class Ef extends Vo.PureComponent{constructor(...e){super(...e),p(this,"state",{}),p(this,"handleAbort",()=>{const{hasStagedItem:e,resetCreator:t,staged:r}=this.props;r||e||t()}),p(this,"handleStart",()=>{const{setStaged:e,setStatus:t}=this.props;e(null),t($t.started)}),p(this,"handleStagedMount",e=>{const{setReferenceId:t}=this.props;t(e)}),p(this,"handleStop",e=>{const{location:t,setStaged:r,setStatus:n,targetType:o,referenceEl:i}=this.props;r({location:o!==Pe.FRAME?t:qp(i),shape:e}),n($t.staged)})}render(){const{isCreating:e,rotation:t,staged:r}=this.props;return Vo.createElement(Vo.Fragment,null,e&&Vo.createElement(xf,{className:"ba-RegionCreation-creator",onAbort:this.handleAbort,onStart:this.handleStart,onStop:this.handleStop,rotation:t}),r&&Vo.createElement("div",{className:"ba-RegionCreation-target"},Vo.createElement(yf,{isActive:!0,onMount:this.handleStagedMount,shape:r.shape})))}}p(Ef,"defaultProps",{isCreating:!1,rotation:0});const _f={resetCreator:Yt,setReferenceId:Jt,setStaged:Qt,setStatus:er},Of=(0,Wo.connect)((e,{location:t})=>{const r=gn(e,t);return{hasStagedItem:Boolean(hn(e)),isCreating:Sn(e)===g.REGION&&mn(e)!==$t.pending,rotation:Ve(e),staged:vn(r)?r:null}},_f)(Md(Ef));class Cf extends Xo{decorate(){this.reactEl.classList.add("ba-Layer--regionCreation"),this.reactEl.dataset.testid="ba-Layer--regionCreation"}render(e){this.root||(this.root=Go.createRoot(this.reactEl)),this.root.render(Vo.createElement(Of,m({targetType:this.targetType,referenceEl:this.referenceEl,location:this.location},e)))}}const kf="ba-is-drawing";function Af(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Af(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class Df{constructor({getSelection:e,store:t}){p(this,"getSelection",void 0),p(this,"store",void 0),p(this,"handleSelectionChange",()=>{if(jd(this.store.getState()))return;const e=this.getSelection(),t=Ve(this.store.getState());this.store.dispatch(Sr(e?Tf(Tf({},e),{},{rotation:t}):null))}),p(this,"debounceHandleSelectionChange",fu()(this.handleSelectionChange,500)),this.getSelection=e,this.store=t,document.addEventListener("selectionchange",this.debounceHandleSelectionChange)}destroy(){document.removeEventListener("selectionchange",this.debounceHandleSelectionChange)}}function If(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Pf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?If(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class Lf{constructor({getSelection:e,referenceEl:t,selectionChangeDelay:r=0,store:n}){p(this,"referenceEl",void 0),p(this,"getSelection",void 0),p(this,"selectionChangeDelay",void 0),p(this,"selectionChangeTimer",void 0),p(this,"store",void 0),p(this,"handleMouseDown",({buttons:e})=>{1===e&&(clearTimeout(this.selectionChangeTimer),this.store.dispatch(Er(!0)),this.store.dispatch(Sr(null)))}),p(this,"handleMouseUp",()=>{jd(this.store.getState())&&(this.selectionChangeTimer=window.setTimeout(()=>{const e=this.getSelection(),t=Ve(this.store.getState());this.store.dispatch(Sr(e?Pf(Pf({},e),{},{rotation:t}):null)),this.store.dispatch(Er(!1))},this.selectionChangeDelay))}),this.getSelection=e,this.referenceEl=t,this.selectionChangeDelay=r,this.store=n}exists(e){return e.contains(this.referenceEl)}render(){this.store.dispatch(Sr(null)),this.referenceEl.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mouseup",this.handleMouseUp)}style(){return this.referenceEl.style}destroy(){clearTimeout(this.selectionChangeTimer),this.referenceEl.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mouseup",this.handleMouseUp)}}class Mf extends Vo.PureComponent{constructor(...e){super(...e),p(this,"canvasRef",Vo.createRef())}componentDidMount(){this.scaleCanvas(),this.renderRects()}componentDidUpdate(){this.clearCanvas(),this.renderRects()}getContext(){const{current:e}=this.canvasRef;return e?.getContext("2d")??null}scaleCanvas(){const{current:e}=this.canvasRef;e&&(e.width=e.offsetWidth,e.height=e.offsetHeight)}clearCanvas(){const{current:e}=this.canvasRef,t=e&&e.getContext("2d");e&&t&&t.clearRect(0,0,e.width,e.height)}renderRects(){const{shapes:e}=this.props,{current:t}=this.canvasRef,r=t&&t.getContext("2d"),n=t?.height??0,o=t?.width??0,i=Array.isArray(e)?e:[e];r&&i.forEach(e=>{const{height:t,isActive:i,isHover:a,width:s,x:c,y:u}=e;if(0===s||0===t)return;const l=t/100*n,d=s/100*o,p=c/100*o,f=u/100*n;if(r.save(),r.fillStyle="#ffd700",r.globalAlpha=i||a?.66:.33,r.fillRect(p,f,d,l),r.restore(),r.save(),r.strokeStyle=Ht,r.lineWidth=1,r.strokeRect(p,f,d,l),i){const e=r.getImageData(p,f,d,l);r.save(),r.shadowColor="#000",r.shadowBlur=10,r.strokeRect(p,f,d,l),r.putImageData(e,p,f),r.restore()}r.restore()})}render(){return Vo.createElement("canvas",{ref:this.canvasRef,className:"ba-HighlightCanvas"})}}p(Mf,"defaultProps",{shapes:[]});const Rf=({children:e,className:t},r)=>qo().createElement("svg",{ref:r,className:yi()("ba-HighlightSvg",t)},e),jf=qo().forwardRef(Rf),Nf=(e,t)=>{const{annotationId:r,className:n,isActive:o,onHover:i=Lr(),onMount:a=Lr(),onSelect:s=Lr(),shapes:c}=e,u=Sp(a),l=()=>{s(r)};return qo().createElement("a",{ref:t,className:yi()("ba-HighlightTarget",n,{"is-active":o}),"data-ba-annotation-id":r,"data-ba-reference-id":u,"data-resin-itemid":r,"data-resin-target":"highlightText","data-testid":`ba-AnnotationTarget-${r}`,href:"#",onClick:e=>{e.preventDefault(),e.stopPropagation()},onFocus:l,onMouseDown:e=>{if(1!==e.buttons)return;const t=document.activeElement;e.preventDefault(),e.stopPropagation(),t&&t!==e.currentTarget&&t.blur&&t.blur(),e.currentTarget.focus?e.currentTarget.focus():l()},onMouseEnter:()=>{i(r)},onMouseLeave:()=>{i(null)},role:"button",tabIndex:0},c.map(e=>{const{height:t,width:n,x:o,y:i}=e;return qo().createElement("rect",{key:`${r}-${o}-${i}-${n}-${t}`,className:"ba-HighlightTarget-rect",fill:"none",height:`${t}%`,width:`${n}%`,x:`${o}%`,y:`${i}%`})}))},Ff=qo().forwardRef(Nf);function Bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Uf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Kf({target:e}){const{shapes:t=[]}=e;return t.every(({height:e,width:t,x:r,y:n})=>lp(e)&&lp(t)&&lp(r)&&lp(n))}function Hf(e){return e.reduce((e,{height:t,width:r})=>e+t*r,0)}function zf({target:e},{target:t}){const{shapes:r}=e,{shapes:n}=t;return Hf(r)>Hf(n)?-1:1}function Vf({activeId:e=null,annotations:t,className:r,onSelect:n}){const[o,i]=qo().useState(null),a=qo().createRef(),s=up(),c=t.filter(Kf).sort(zf),u=function(e,t,r){return e.reduce((e,n)=>{const{id:o,target:{shapes:i}}=n;return e.concat(i.map(e=>Uf(Uf({},e),{},{isActive:t===o,isHover:r===o})))},[])}(c,e,o),l=e=>{i(e)};return qo().createElement("div",{className:yi()("ba-HighlightList",r),"data-resin-component":"highlightList"},qo().createElement(Mf,{shapes:u}),qo().createElement(jf,{ref:a,className:yi()({"is-listening":s})},c.map(({id:t,target:r})=>qo().createElement(Ff,{key:t,annotationId:t,isActive:e===t,onHover:l,onSelect:n,shapes:r.shapes}))))}const qf=qo().memo(Vf);function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gf.apply(null,arguments)}const Wf=e=>Vo.createElement(Ip,Gf({width:16,height:16,viewBox:"0 0 16 16"},e),Vo.createElement("path",{d:"M5.75 1a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25H4v12h1.75a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-4.5a.25.25 0 01-.25-.25v-.5a.25.25 0 01.25-.25H3V2H1.25A.25.25 0 011 1.75v-.5A.25.25 0 011.25 1h4.5zM13 4a2 2 0 012 2v4a2 2 0 01-2 2H5.75a1 1 0 01-1-1V5a1 1 0 011-1H13zm-2.78 1.5a2.83 2.83 0 00-1.991.763l.206.372a.53.53 0 00.136.148.33.33 0 00.206.064.5.5 0 00.255-.066l.255-.148c.093-.055.202-.104.325-.148s.278-.066.465-.066c.26 0 .456.078.593.233s.206.395.206.72v.283c-.548.013-1.006.066-1.374.16s-.662.213-.883.356-.38.303-.474.48S8 9.008 8 9.2c0 .217.034.407.103.57a1.11 1.11 0 00.29.41 1.23 1.23 0 00.444.247c.17.055.358.082.56.082.17 0 .328-.014.47-.042a1.83 1.83 0 00.4-.127 2.87 2.87 0 00.36-.2 4.18 4.18 0 00.355-.29l.103.344c.034.1.08.167.14.2s.143.05.252.05H12V7.37a2.29 2.29 0 00-.119-.754 1.64 1.64 0 00-.348-.59 1.59 1.59 0 00-.561-.386 1.93 1.93 0 00-.752-.139zm.654 2.86v.815a1.812 1.812 0 01-.507.393 1.36 1.36 0 01-.614.13c-.193 0-.35-.044-.47-.132s-.18-.234-.18-.438c0-.104.03-.2.09-.287a.72.72 0 01.294-.231c.137-.066.32-.12.544-.163a6.27 6.27 0 01.843-.087z",fill:Vt,fillRule:"evenodd"})),$f={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function Yf({onCancel:e=Lr(),onSubmit:t=Lr(),shape:r}){const n=qo().useRef(null),{height:o,width:i,x:a,y:s}=r,c={getBoundingClientRect:()=>Yl(o,i,a,s)};return _d("keydown",n,e=>{e instanceof KeyboardEvent&&"Enter"===e.key&&!e.ctrlKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),t())}),_d("mousedown",n,e),qo().createElement(Zl,{"aria-live":"polite",className:"ba-PopupHighlight",options:$f,reference:c,role:"dialog"},qo().createElement("button",{ref:n,"aria-haspopup":"dialog",className:"ba-PopupHighlight-button","data-testid":"ba-PopupHighlight-button",onClick:t,type:"button"},qo().createElement(Wf,{className:"ba-PopupHighlight-icon"}),qo().createElement(ei.FormattedMessage,cu.popupHighlightPromoter)))}const Xf={modifiers:[{name:"arrow",options:{element:".ba-Popup-arrow"}},{name:"eventListeners",options:{scroll:!1}},{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:5}}],placement:"bottom"};function Zf({onCancel:e=Lr(),shape:t}){const r=qo().useRef(null),{height:n,width:o,x:i,y:a}=t,s={getBoundingClientRect:()=>Yl(n,o,i,a)};return _d("mousedown",r.current?.popupRef,e),qo().createElement(Zl,{ref:r,className:"ba-PopupHighlightError","data-testid":"ba-PopupHighlightError",options:Xf,reference:s},qo().createElement(ei.FormattedMessage,cu.popupHighlightRestrictedPrompt))}function Jf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const eh={setActiveAnnotationId:ut,setIsPromoting:xr,setReferenceId:Jt,setSelection:Sr,setStaged:Qt,setStatus:er},th=(0,Wo.connect)((e,{location:t})=>{const r=gn(e,t);return{activeAnnotationId:Le(e),annotations:je(e,t).filter(pr),isCreating:Sn(e)===g.HIGHLIGHT,isPending:mn(e)===$t.pending,isPromoting:Rd(e),isSelecting:jd(e),rotation:Ve(e),selection:Nd(e,t),staged:bn(r)?r:null}},eh)(Md(e=>{const{activeAnnotationId:t,annotations:r=[],isCreating:n=!1,isPending:o=!1,isPromoting:i=!1,isSelecting:a=!1,popupPortalEl:s,rotation:c,selection:u,setActiveAnnotationId:l,setIsPromoting:d,setReferenceId:p,setSelection:f,setStaged:h,setStatus:g,staged:m}=e,y=n||i,b=Vo.useCallback(()=>{if(!u)return;const{containerRect:e,location:t,rects:r}=u;h({location:t,shapes:r.map(t=>Qf(Qf({},((e,t)=>{const{height:r,width:n,x:o,y:i}=e,{height:a,width:s,x:c,y:u}=t;return{height:r/a*100,width:n/s*100,x:Math.max(0,o-c)/s*100,y:Math.max(0,i-u)/a*100}})(t,e)),{},{type:"rect"}))}),g($t.staged)},[u,h,g]),v=()=>{f(null)},w=()=>{b(),d(!0)};return Vo.useEffect(()=>{a&&!o&&(h(null),g($t.init))},[a,o,h,g]),Vo.useEffect(()=>{n&&u&&!u.hasError&&!o&&b()},[n,o,u,b]),Vo.createElement(Vo.Fragment,null,Vo.createElement(qf,{activeId:t,annotations:r,onSelect:e=>{l(e)}}),y&&m&&Vo.createElement("div",{className:"ba-HighlightAnnotations-target"},Vo.createElement(Mf,{shapes:m.shapes}),Vo.createElement(jf,null,Vo.createElement(Ff,{annotationId:"staged",isActive:!0,onMount:e=>{p(e)},shapes:m.shapes}))),!n&&u&&!u.hasError&&(()=>{const e=u.popupRect||dr(u.rects),t=Vo.createElement("div",{className:"ba-HighlightAnnotations-popup"},Vo.createElement(Yf,{onCancel:v,onSubmit:w,shape:e}));return c&&s?fi().createPortal(t,s):t})(),u&&u.hasError&&(()=>{const e=u.popupRect||dr(u.rects),t=Vo.createElement("div",{className:"ba-HighlightAnnotations-popup"},Vo.createElement(Zf,{onCancel:v,shape:e}));return c&&s?fi().createPortal(t,s):t})())})),rh=["popupPortalEl"];class nh extends Xo{constructor(e){let{popupPortalEl:t}=e;super(pt(e,rh)),p(this,"popupPortalEl",void 0),this.popupPortalEl=t}decorate(){this.reactEl.classList.add("ba-Layer--highlight"),this.reactEl.dataset.testid="ba-Layer--highlight"}render(e){this.root||(this.root=Go.createRoot(this.reactEl)),this.root.render(Vo.createElement(th,m({location:this.location,popupPortalEl:this.popupPortalEl},e)))}}function oh(e,t){for(let r=e;r&&r!==document.body;r=r.parentNode)if(r.classList&&r.classList.contains(t))return r;return null}function ih(e){const t=oh(e,"page"),r=t&&t.getAttribute("data-page-number");return r?parseInt(r,10):void 0}let ah=function(e){return e.CAN_CREATE_ANNOTATIONS="can_create_annotations",e.CAN_VIEW_ANNOTATIONS="can_view_annotations",e}({});const sh="ba-is-drawing";function ch(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ch(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ch(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const lh=[{CONSTRUCTOR:class extends di{constructor(e){super(e),p(this,"annotatedEl",void 0),p(this,"highlightListener",void 0),p(this,"canCreate",void 0),p(this,"managers",new Map),p(this,"managersViewMode",null),p(this,"getDocumentSelection",()=>{const e=this.annotatedEl??this.getAnnotatedElement();return e?function(e){const t=window.getSelection();if(!t||t.isCollapsed||!t.rangeCount||!t.focusNode)return null;if(e&&!e.contains(t.focusNode))return null;let r=t.getRangeAt(t.rangeCount-1);const n=t.getRangeAt(0);r.setStart(n.startContainer,n.startOffset);const o=oh(r.endContainer,"textLayer"),i=ih(r.startContainer),a=ih(r.endContainer);if(!o||!i||!a)return null;const s=i!==a;let c=a;return s&&(r=document.createRange(),r.setEnd(t.focusNode,t.focusOffset),r.collapse(!1),c=ih(t.focusNode)??a),{containerEl:o,containerRect:o.getBoundingClientRect(),hasError:s,location:c,range:r}}(e):null}),p(this,"handleChangeMode",({mode:e})=>{if(!this.annotatedEl||"boundingBoxes"===Be(this.store.getState()))return;this.removeAnnotationClasses();const t=this.annotatedEl,r=li[e];r&&t.classList.add(r)}),this.canCreate=!1!==e.showAnnotationsControls,this.canCreate&&(this.highlightListener=new Df({getSelection:this.getDocumentSelection,store:this.store})),this.addListener(Rr.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode)}destroy(){this.removeListener(Rr.ANNOTATIONS_MODE_CHANGE,this.handleChangeMode),this.highlightListener&&this.highlightListener.destroy(),this.managers&&this.managers.forEach(e=>e.forEach(e=>e.destroy())),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-doc")}clearManagers(){this.managers.forEach(e=>e.forEach(e=>e.destroy())),this.managers.clear(),this.managersViewMode=null}getPageManagers(e){const t=Ue(this.store.getState()),r=He(this.store.getState()),n=this.getPageNumber(e),o=this.getPageReference(e),i={fileid:t,iscurrent:r},a=Be(this.store.getState()),s=this.managers.get(n)||new Set;let c=!1;if(s.forEach(t=>{t.exists(e)||(c=!0)}),c&&(s.forEach(e=>{e.destroy()}),s.clear()),0===s.size){if("boundingBoxes"===a)return s.add(new Zd({location:n,referenceEl:o,resinTags:i})),s;s.add(new Kd({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new Jp({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i}));const t=e.querySelector(".textLayer");if(this.canCreate&&t&&s.add(new Lf({getSelection:this.getDocumentSelection,referenceEl:t,selectionChangeDelay:300,store:this.store})),s.add(new nh({location:n,popupPortalEl:this.popupPortalEl,referenceEl:o,resinTags:i})),s.add(new pf({location:n,referenceEl:o,resinTags:i})),this.canCreate){const t=e.querySelector(".canvasWrapper");s.add(new Cf({location:n,referenceEl:t||o,resinTags:i}))}}return s}getPageNumber(e){return parseInt(e.dataset.pageNumber||"",10)||1}getPageReference(e){const t=e.querySelector(".annotationLayer"),r=e.querySelector(".canvasWrapper"),n=e.querySelector(".textLayer");return t||n||r}getPage(e){return this.getPages().find(t=>e===this.getPageNumber(t))}getPages(){return this.annotatedEl?Array.from(this.annotatedEl.querySelectorAll(".page")):[]}render(){const e=Be(this.store.getState());null!==this.managersViewMode&&this.managersViewMode!==e&&this.clearManagers(),this.managersViewMode=e,this.getPages().filter(({dataset:e})=>e.loaded&&e.pageNumber).forEach(e=>this.renderPage(e)),this.postRender()}postRender(){"boundingBoxes"!==Be(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}renderPage(e){const t=this.getPageManagers(e),r=this.getPageNumber(e),n=Ve(this.store.getState())||0,o=e.clientWidth,i=e.clientHeight-30,a=n%180!=0,s=a?i:o,c=a?o:i;t.forEach(e=>{n?e.style({height:`${c}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) rotate(${n}deg)`,width:`${s}px`}):e.style({height:"",left:"",top:"",transform:"",width:""}),e.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.managers.set(r,t)}scrollToAnnotation(e){if(!e)return;const t=Me(this.store.getState(),e),r=t?.target.location.value??1,n=this.getPage(r);if(!(t&&r&&n&&this.annotatedEl))return;let o=null;tf(t)?o=ef(t.target.shape):pr(t)?o=(e=>{const t=dr(e),{x:r,y:n}=t,{x:o,y:i}=(e=>{const{height:t,width:r}=e;return{x:r/2,y:t/2}})(t);return{x:o+r,y:i+n}})(t.target.shapes):It(t)&&(o=Pt(t.target.path_groups)),o&&ci(this.annotatedEl,n,{offsets:o})}getScrollReferenceForHighlight(e){return this.getPage(e.pageNumber)}},NAME:"Document",TYPES:[lr.highlight,lr.region],VIEWERS:["AutoCAD","Document","Presentation"]},{CONSTRUCTOR:class extends di{constructor(e){super(e),p(this,"annotatedEl",void 0),p(this,"managers",new Set),p(this,"managersViewMode",null),p(this,"storeHandler",void 0),p(this,"handleStore",()=>{const e=this.getReference();e&&(mn(this.store.getState())===$t.started?e.classList.add(kf):e.classList.remove(kf))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-image")}clearManagers(){this.managers.forEach(e=>e.destroy()),this.managers.clear(),this.managersViewMode=null}getManagers(e,t){const r={fileid:Ue(this.store.getState()),iscurrent:He(this.store.getState())},n=Be(this.store.getState());if(this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size){if("boundingBoxes"===n)return this.managers.add(new Zd({location:1,referenceEl:t,resinTags:r})),this.managers;this.managers.add(new Kd({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:r})),this.managers.add(new Jp({popupPortalEl:this.popupPortalEl,referenceEl:t,resinTags:r})),this.managers.add(new pf({referenceEl:t,resinTags:r})),this.managers.add(new Cf({referenceEl:t,resinTags:r}))}return this.managers}getReference(){return this.annotatedEl?.querySelector("img")}render(){const e=this.getReference(),t=Ve(this.store.getState())||0,r=Be(this.store.getState());this.annotatedEl&&e&&(null!==this.managersViewMode&&this.managersViewMode!==r&&this.clearManagers(),this.managersViewMode=r,this.getManagers(this.annotatedEl,e).forEach(r=>{r.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),r.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}postRender(){"boundingBoxes"!==Be(this.store.getState())?super.postRender():this.deselectManager&&(this.deselectManager.destroy(),this.deselectManager=null)}getScrollReferenceForHighlight(){return this.getReference()}getAdjustedScrollOffsets(e){return br(e,Ve(this.store.getState())||0)}scrollToAnnotation(e){if(!e)return;const t=Me(this.store.getState(),e),r=t?.target.location.value??1,n=this.getReference(),o=Ve(this.store.getState())||0;if(!(t&&r&&n&&this.annotatedEl))return;let i=null;tf(t)?i=ef(t.target.shape):It(t)&&(i=Pt(t.target.path_groups)),i&&ci(this.annotatedEl,n,{offsets:br(i,o)})}},NAME:"Image",TYPES:[lr.region],VIEWERS:["Image"]},{CONSTRUCTOR:class extends di{constructor(e){super(e),p(this,"annotatedEl",void 0),p(this,"managers",new Set),p(this,"storeHandler",void 0),p(this,"handleStore",()=>{const e=this.getReference();e&&(mn(this.store.getState())===$t.started?e.classList.add(sh):e.classList.remove(sh))}),this.storeHandler=this.store.subscribe(this.handleStore)}destroy(){this.storeHandler&&this.storeHandler(),this.managers&&this.managers.forEach(e=>e.destroy()),super.destroy()}getAnnotatedElement(){return this.containerEl?.querySelector(".bp-media")}addManagers(e,t){this.managers.add(new Kd({location:Ie,popupPortalEl:this.popupPortalEl,referenceEl:e,resinTags:t,targetType:Pe.FRAME})),this.managers.add(new Jp({location:Ie,referenceEl:e,resinTags:t,targetType:Pe.FRAME})),this.managers.add(new pf({location:Ie,referenceEl:e,resinTags:t,targetType:Pe.FRAME})),this.managers.add(new Cf({location:Ie,referenceEl:e,resinTags:t,targetType:Pe.FRAME}))}getManagers(e,t){const r={fileid:Ue(this.store.getState()),iscurrent:He(this.store.getState())};return this.managers.forEach(t=>{t.exists(e)||(t.destroy(),this.managers.delete(t))}),0===this.managers.size&&this.addManagers(t,r),this.managers}getReference(){return this.annotatedEl?.querySelector("video")}render(){const e=this.getReference(),t=Ve(this.store.getState())||0;this.annotatedEl&&e&&(this.getManagers(this.annotatedEl,e).forEach(r=>{r.style({height:`${e.offsetHeight}px`,left:`${e.offsetLeft}px`,top:`${e.offsetTop}px`,transform:`rotate(${t}deg)`,width:`${e.offsetWidth}px`}),r.render({callbacks:{onCopyLink:this.onCopyLink},intl:this.intl,store:this.store})}),this.postRender())}scrollToAnnotation(e,t=-1){if(!e)return;const r=Me(this.store.getState(),e),n=r?.target?.location?.value??t,o=this.getReference();o&&this.annotatedEl&&-1!==n&&(o.pause(),o.currentTime=n/1e3)}},NAME:"Media",TYPES:[lr.region],VIEWERS:["Dash","MP4"]}];class dh{constructor(e,t){p(this,"annotators",void 0),p(this,"annotationsOptions",void 0),p(this,"viewerOptions",void 0),this.annotators=lh,this.annotationsOptions=t,this.viewerOptions=e}canLoad(e){return!(!e||!e[ah.CAN_CREATE_ANNOTATIONS]&&!e[ah.CAN_VIEW_ANNOTATIONS])}getAnnotators(){return Array.isArray(this.annotators)?this.annotators:[]}getAnnotatorsForViewer(e=""){return this.getAnnotators().find(t=>t.VIEWERS.includes(e))}determineAnnotator(e,t={}){const r=this.getAnnotatorsForViewer(h()(e,"viewer.NAME")),n=this.canLoad(h()(e,"file.permissions"));if(!r||!n||!1===t.enabled)return null;const o=h()(this.viewerOptions,[r.NAME,"enabledTypes"]),i=h()(t,"enabledTypes"),a=(o||i||r.TYPES||[]).filter(e=>r.TYPES.some(t=>t===e));return uh(uh({},r),{},{TYPES:a})}getOptions(){return this.annotationsOptions}}globalThis.BoxAnnotations=dh;const ph=dh;export{ph as default};
|